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

Side by Side Diff: pkg/analysis_server/lib/src/domain_analysis.dart

Issue 1574523002: add enableAsync to analysis option file flags (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library domain.analysis; 5 library domain.analysis;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:core' hide Resource; 8 import 'dart:core' hide Resource;
9 9
10 import 'package:analysis_server/plugin/analysis/analysis_domain.dart'; 10 import 'package:analysis_server/plugin/analysis/analysis_domain.dart';
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 if (newOptions.generateHints != null) { 322 if (newOptions.generateHints != null) {
323 updaters.add((engine.AnalysisOptionsImpl options) { 323 updaters.add((engine.AnalysisOptionsImpl options) {
324 options.hint = newOptions.generateHints; 324 options.hint = newOptions.generateHints;
325 }); 325 });
326 } 326 }
327 if (newOptions.generateLints != null) { 327 if (newOptions.generateLints != null) {
328 updaters.add((engine.AnalysisOptionsImpl options) { 328 updaters.add((engine.AnalysisOptionsImpl options) {
329 options.lint = newOptions.generateLints; 329 options.lint = newOptions.generateLints;
330 }); 330 });
331 } 331 }
332 if (newOptions.enableAsync != null) {
333 updaters.add((engine.AnalysisOptionsImpl options) {
334 options.enableAsync = newOptions.enableAsync;
335 });
336 }
332 if (newOptions.enableSuperMixins != null) { 337 if (newOptions.enableSuperMixins != null) {
333 updaters.add((engine.AnalysisOptionsImpl options) { 338 updaters.add((engine.AnalysisOptionsImpl options) {
334 options.enableSuperMixins = newOptions.enableSuperMixins; 339 options.enableSuperMixins = newOptions.enableSuperMixins;
335 }); 340 });
336 } 341 }
337 server.updateOptions(updaters); 342 server.updateOptions(updaters);
338 return new AnalysisUpdateOptionsResult().toResponse(request.id); 343 return new AnalysisUpdateOptionsResult().toResponse(request.id);
339 } 344 }
340 345
341 /** 346 /**
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 context.onResultComputed(descriptor).listen((result) { 406 context.onResultComputed(descriptor).listen((result) {
402 StreamController<engine.ComputedResult> controller = 407 StreamController<engine.ComputedResult> controller =
403 controllers[result.descriptor]; 408 controllers[result.descriptor];
404 if (controller != null) { 409 if (controller != null) {
405 controller.add(result); 410 controller.add(result);
406 } 411 }
407 }); 412 });
408 } 413 }
409 } 414 }
410 } 415 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698