File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
pkg/analyzer/lib/src/dart/analysis Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import 'package:analyzer/dart/analysis/declared_variables.dart';
6
6
import 'package:analyzer/dart/analysis/features.dart' ;
7
7
import 'package:analyzer/dart/ast/ast.dart' ;
8
8
import 'package:analyzer/dart/element/element.dart' ;
9
+ import 'package:analyzer/dart/element/null_safety_understanding_flag.dart' ;
9
10
import 'package:analyzer/error/error.dart' ;
10
11
import 'package:analyzer/error/listener.dart' ;
11
12
import 'package:analyzer/src/dart/analysis/file_state.dart' ;
@@ -107,6 +108,10 @@ class LibraryAnalyzer {
107
108
108
109
/// Compute analysis results for all units of the library.
109
110
Map <FileState , UnitAnalysisResult > analyzeSync () {
111
+ // Analyzer understands null safety, so it should set
112
+ // NullSafetyUnderstandingFlag.
113
+ assert (NullSafetyUnderstandingFlag .isEnabled);
114
+
110
115
timerLibraryAnalyzer.start ();
111
116
Map <FileState , CompilationUnit > units = {};
112
117
You can’t perform that action at this time.
0 commit comments