Skip to content

Commit e5233fb

Browse files
author
Jonah Williams
authored
[null-safety] migrate to _almost_ null safety (flutter#162)
Remove record/replay functionality and update to almost null-safety.
1 parent d189c70 commit e5233fb

File tree

80 files changed

+186
-5244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+186
-5244
lines changed

analysis_options.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
analyzer:
2+
enable-experiment:
3+
- non-nullable
24
strong-mode:
35
implicit-casts: false
46
implicit-dynamic: false

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ install:
1111
build: off
1212

1313
test_script:
14-
- pub run test -j1
14+
- pub run --enable-experiment=non-nullable test -j1

dev/bots/travis_script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ elif [[ "$SHARD" == "analyze" ]]; then
1111
for package in "${PACKAGES[@]}"; do
1212
echo "Analyzing packages/$package"
1313
cd $ROOT/packages/$package
14-
dartanalyzer --options=$ROOT/analysis_options.yaml . || exit $?
14+
dartanalyzer --enable-experiment=non-nullable --options=$ROOT/analysis_options.yaml . || exit $?
1515
done
1616
else
1717
# tests shard
1818
cd $ROOT/packages/file
19-
pub run test -j1 -rexpanded || exit $?
19+
pub run --enable-experiment=non-nullable test -j1 -rexpanded || exit $?
2020
fi

packages/file/CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
#### 5.2.2-dev
1+
#### 6.0.0-nullsafety
22

3-
* Made `MemoryRandomAccessFile` and `MemoryFile.openWrite` handle the file
3+
* Update to null safety.
4+
* Remove record/replay functionality.
5+
* Made `MemoryRandomAccessFile` and `MemoryFile.openWrite` handle the file.
46
being removed or renamed while open.
57
* Fixed incorrect formatting in `NoMatchingInvocationError.toString()`.
68
* Fixed more test flakiness.

packages/file/lib/chroot.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// @dart=2.10
6+
57
/// A file system that provides a view into _another_ `FileSystem` via a path.
68
export 'src/backends/chroot.dart';

packages/file/lib/file.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// @dart=2.10
6+
57
/// Core interfaces containing the abstract `FileSystem` interface definition
68
/// and all associated types used by `FileSystem`.
79
export 'src/forwarding.dart';

packages/file/lib/local.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// @dart=2.10
6+
57
/// A local file system implementation. This relies on the use of `dart:io`
68
/// and is thus not suitable for use in the browser.
79
export 'src/backends/local.dart';

packages/file/lib/memory.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// @dart=2.10
6+
57
/// An implementation of `FileSystem` that exists entirely in memory with an
68
/// internal representation loosely based on the Filesystem Hierarchy Standard.
79
export 'src/backends/memory.dart';

packages/file/lib/record_replay.dart

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/file/lib/src/backends/chroot.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// @dart=2.10
56
library file.src.backends.chroot;
67

78
import 'dart:async';

0 commit comments

Comments
 (0)