| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |