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

Unified Diff: pkg/analysis_server/lib/src/domain_analysis.dart

Issue 1063613002: Add an analysis server option to enable null-aware-operator support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Roll the analysis server JSON API version. Created 5 years, 8 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/analysis_server/lib/src/domain_analysis.dart
diff --git a/pkg/analysis_server/lib/src/domain_analysis.dart b/pkg/analysis_server/lib/src/domain_analysis.dart
index 4a3d28f0bdb42be464ad21cca9b63b3d628a850a..d6e2ec5ea14a78ac233471df325c1c8bb8fd9ba4 100644
--- a/pkg/analysis_server/lib/src/domain_analysis.dart
+++ b/pkg/analysis_server/lib/src/domain_analysis.dart
@@ -206,6 +206,11 @@ class AnalysisDomainHandler implements RequestHandler {
var params = new AnalysisUpdateOptionsParams.fromRequest(request);
AnalysisOptions newOptions = params.options;
List<OptionUpdater> updaters = new List<OptionUpdater>();
+ if (newOptions.enableNullAwareOperators != null) {
+ updaters.add((engine.AnalysisOptionsImpl options) {
+ options.enableNullAwareOperators = newOptions.enableNullAwareOperators;
+ });
+ }
if (newOptions.generateDart2jsHints != null) {
updaters.add((engine.AnalysisOptionsImpl options) {
options.dart2jsHint = newOptions.generateDart2jsHints;

Powered by Google App Engine
This is Rietveld 408576698