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

Unified Diff: pkg/analyzer/benchmark/errors_in_all_libraries.dart

Issue 1847633002: Fix more strong mode errors in analyzer (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix copied comment Created 4 years, 9 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
Index: pkg/analyzer/benchmark/errors_in_all_libraries.dart
diff --git a/pkg/analyzer/benchmark/errors_in_all_libraries.dart b/pkg/analyzer/benchmark/errors_in_all_libraries.dart
index f4281912f39bda03216409ff5faab34f645a9603..0d68c2f2302c25bfef426b1672c53bffd6306fdd 100644
--- a/pkg/analyzer/benchmark/errors_in_all_libraries.dart
+++ b/pkg/analyzer/benchmark/errors_in_all_libraries.dart
@@ -40,8 +40,9 @@ void main(List<String> args) {
new PackageUriResolver([new JavaFile(packageRoot)])
]);
- context.analysisOptions.strongMode = true;
- context.analysisOptions.strongModeHints = true;
+ AnalysisOptionsImpl options = context.analysisOptions;
+ options.strongMode = true;
+ options.strongModeHints = true;
var mainSource =
new FileBasedSource(new JavaFile(p.fromUri(Platform.script)));
« no previous file with comments | « no previous file | pkg/analyzer/lib/file_system/memory_file_system.dart » ('j') | pkg/analyzer/test/generated/parser_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698