Index: pkg/analyzer/lib/src/generated/engine.dart |
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart |
index e7bd28f0daa8d084cb24e56e6b84ef443fd24f82..febc999271bb30c34cedbc4b4ee3d379773f88b3 100644 |
--- a/pkg/analyzer/lib/src/generated/engine.dart |
+++ b/pkg/analyzer/lib/src/generated/engine.dart |
@@ -1303,6 +1303,12 @@ class AnalysisOptionsImpl implements AnalysisOptions { |
*/ |
bool implicitCasts = true; |
+ /** |
+ * A list of non-nullable type names, prefixed by the library URI they belong |
+ * to, e.g., 'dart:core,int', 'dart:core,bool', 'file:///foo.dart,bar', etc. |
+ */ |
+ List<String> nonnullableTypes = NONNULLABLE_TYPES; |
+ |
@override |
bool finerGrainedInvalidation = false; |
@@ -1319,6 +1325,11 @@ class AnalysisOptionsImpl implements AnalysisOptions { |
bool implicitDynamic = true; |
/** |
+ * The default list of non-nullable type names. |
+ */ |
+ static const List<String> NONNULLABLE_TYPES = const <String>[]; |
+ |
+ /** |
* Initialize a newly created set of analysis options to have their default |
* values. |
*/ |
@@ -1350,6 +1361,7 @@ class AnalysisOptionsImpl implements AnalysisOptions { |
if (options is AnalysisOptionsImpl) { |
strongModeHints = options.strongModeHints; |
implicitCasts = options.implicitCasts; |
+ nonnullableTypes = options.nonnullableTypes; |
implicitDynamic = options.implicitDynamic; |
} |
trackCacheDependencies = options.trackCacheDependencies; |