Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 2205743002: Add non-null types list to StrongModeOptions (Closed) Base URL: https://github.com/dart-lang/sdk@master
Patch Set: Address comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/type_system.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/type_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698