Index: pkg/analyzer/test/src/task/strong/strong_test_helper.dart |
diff --git a/pkg/analyzer/test/src/task/strong/strong_test_helper.dart b/pkg/analyzer/test/src/task/strong/strong_test_helper.dart |
index ed14805304ff61c38d5f3b0271e94c0674e2973c..9c3609428f9fa6aea0e31efaa09659eb49b3b01a 100644 |
--- a/pkg/analyzer/test/src/task/strong/strong_test_helper.dart |
+++ b/pkg/analyzer/test/src/task/strong/strong_test_helper.dart |
@@ -54,7 +54,10 @@ void addFile(String content, {String name: '/main.dart'}) { |
/// the file text. |
/// |
/// Returns the main resolved library. This can be used for further checks. |
-CompilationUnit check({bool implicitCasts: true, bool implicitDynamic: true}) { |
+CompilationUnit check( |
+ {bool implicitCasts: true, |
+ bool implicitDynamic: true, |
+ List<String> nonnullableTypes: AnalysisOptionsImpl.NONNULLABLE_TYPES}) { |
_checkCalled = true; |
expect(files.getFile('/main.dart').exists, true, |
@@ -68,6 +71,7 @@ CompilationUnit check({bool implicitCasts: true, bool implicitDynamic: true}) { |
options.strongModeHints = true; |
options.implicitCasts = implicitCasts; |
options.implicitDynamic = implicitDynamic; |
+ options.nonnullableTypes = nonnullableTypes; |
var mockSdk = new MockSdk(); |
(mockSdk.context.analysisOptions as AnalysisOptionsImpl).strongMode = true; |
context.sourceFactory = |