| 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'dart:core'; | 6 import 'dart:core'; |
| 7 | 7 |
| 8 import 'package:analysis_server/protocol/protocol_constants.dart'; | 8 import 'package:analysis_server/protocol/protocol_constants.dart'; |
| 9 import 'package:analysis_server/src/analysis_server.dart'; | 9 import 'package:analysis_server/src/analysis_server.dart'; |
| 10 import 'package:analysis_server/src/computer/computer_hover.dart'; | 10 import 'package:analysis_server/src/computer/computer_hover.dart'; |
| 11 import 'package:analysis_server/src/computer/imported_elements_computer.dart'; | 11 import 'package:analysis_server/src/computer/imported_elements_computer.dart'; |
| 12 import 'package:analysis_server/src/domain_abstract.dart'; | 12 import 'package:analysis_server/src/domain_abstract.dart'; |
| 13 import 'package:analysis_server/src/domains/analysis/navigation.dart'; | |
| 14 import 'package:analysis_server/src/domains/analysis/navigation_dart.dart'; | 13 import 'package:analysis_server/src/domains/analysis/navigation_dart.dart'; |
| 15 import 'package:analysis_server/src/plugin/plugin_manager.dart'; | 14 import 'package:analysis_server/src/plugin/plugin_manager.dart'; |
| 16 import 'package:analysis_server/src/plugin/request_converter.dart'; | 15 import 'package:analysis_server/src/plugin/request_converter.dart'; |
| 17 import 'package:analysis_server/src/plugin/result_merger.dart'; | 16 import 'package:analysis_server/src/plugin/result_merger.dart'; |
| 18 import 'package:analysis_server/src/protocol/protocol_internal.dart'; | 17 import 'package:analysis_server/src/protocol/protocol_internal.dart'; |
| 19 import 'package:analysis_server/src/protocol_server.dart'; | 18 import 'package:analysis_server/src/protocol_server.dart'; |
| 20 import 'package:analyzer/dart/ast/ast.dart'; | 19 import 'package:analyzer/dart/ast/ast.dart'; |
| 21 import 'package:analyzer/error/error.dart' as engine; | 20 import 'package:analyzer/error/error.dart' as engine; |
| 22 import 'package:analyzer/file_system/file_system.dart'; | 21 import 'package:analyzer/file_system/file_system.dart'; |
| 23 import 'package:analyzer/src/dart/analysis/driver.dart'; | 22 import 'package:analyzer/src/dart/analysis/driver.dart'; |
| 24 import 'package:analyzer/src/generated/engine.dart' as engine; | 23 import 'package:analyzer/src/generated/engine.dart' as engine; |
| 25 import 'package:analyzer/src/generated/source.dart'; | 24 import 'package:analyzer/src/generated/source.dart'; |
| 26 import 'package:analyzer_plugin/protocol/protocol.dart' as plugin; | 25 import 'package:analyzer_plugin/protocol/protocol.dart' as plugin; |
| 27 import 'package:analyzer_plugin/protocol/protocol_common.dart'; | 26 import 'package:analyzer_plugin/protocol/protocol_common.dart'; |
| 28 import 'package:analyzer_plugin/protocol/protocol_constants.dart' as plugin; | 27 import 'package:analyzer_plugin/protocol/protocol_constants.dart' as plugin; |
| 29 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin; | 28 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin; |
| 29 import 'package:analyzer_plugin/src/utilities/navigation/navigation.dart'; |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * Instances of the class [AnalysisDomainHandler] implement a [RequestHandler] | 32 * Instances of the class [AnalysisDomainHandler] implement a [RequestHandler] |
| 33 * that handles requests in the `analysis` domain. | 33 * that handles requests in the `analysis` domain. |
| 34 */ | 34 */ |
| 35 class AnalysisDomainHandler extends AbstractRequestHandler { | 35 class AnalysisDomainHandler extends AbstractRequestHandler { |
| 36 /** | 36 /** |
| 37 * Initialize a newly created handler to handle requests for the given [server
]. | 37 * Initialize a newly created handler to handle requests for the given [server
]. |
| 38 */ | 38 */ |
| 39 AnalysisDomainHandler(AnalysisServer server) : super(server); | 39 AnalysisDomainHandler(AnalysisServer server) : super(server); |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 } | 423 } |
| 424 if (newOptions.enableSuperMixins != null) { | 424 if (newOptions.enableSuperMixins != null) { |
| 425 updaters.add((engine.AnalysisOptionsImpl options) { | 425 updaters.add((engine.AnalysisOptionsImpl options) { |
| 426 options.enableSuperMixins = newOptions.enableSuperMixins; | 426 options.enableSuperMixins = newOptions.enableSuperMixins; |
| 427 }); | 427 }); |
| 428 } | 428 } |
| 429 server.updateOptions(updaters); | 429 server.updateOptions(updaters); |
| 430 return new AnalysisUpdateOptionsResult().toResponse(request.id); | 430 return new AnalysisUpdateOptionsResult().toResponse(request.id); |
| 431 } | 431 } |
| 432 } | 432 } |
| OLD | NEW |