| 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 analysis.server; | 5 library analysis.server; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/analysis_logger.dart'; | 9 import 'package:analysis_server/src/analysis_logger.dart'; |
| 10 import 'package:analysis_server/src/channel.dart'; | 10 import 'package:analysis_server/src/channel.dart'; |
| 11 import 'package:analysis_server/src/constants.dart'; | 11 import 'package:analysis_server/src/constants.dart'; |
| 12 import 'package:analysis_server/src/context_directory_manager.dart'; | 12 import 'package:analysis_server/src/context_directory_manager.dart'; |
| 13 import 'package:analysis_server/src/domain_analysis.dart'; | 13 import 'package:analysis_server/src/domain_analysis.dart'; |
| 14 import 'package:analysis_server/src/operation/operation_analysis.dart'; | 14 import 'package:analysis_server/src/operation/operation_analysis.dart'; |
| 15 import 'package:analysis_server/src/operation/operation.dart'; | 15 import 'package:analysis_server/src/operation/operation.dart'; |
| 16 import 'package:analysis_server/src/operation/operation_queue.dart'; | 16 import 'package:analysis_server/src/operation/operation_queue.dart'; |
| 17 import 'package:analysis_server/src/protocol.dart'; | 17 import 'package:analysis_server/src/protocol.dart'; |
| 18 import 'package:analysis_server/src/resource.dart'; | 18 import 'package:analysis_server/src/resource.dart'; |
| 19 import 'package:analyzer/src/generated/ast.dart'; | 19 import 'package:analyzer/src/generated/ast.dart'; |
| 20 import 'package:analyzer/src/generated/engine.dart'; | 20 import 'package:analyzer/src/generated/engine.dart'; |
| 21 import 'package:analyzer/src/generated/error.dart'; | 21 import 'package:analyzer/src/generated/error.dart'; |
| 22 import 'package:analyzer/src/generated/source.dart'; | 22 import 'package:analyzer/src/generated/source.dart'; |
| 23 import 'package:analyzer/src/generated/sdk.dart'; | 23 import 'package:analyzer/src/generated/sdk.dart'; |
| 24 import 'package:analyzer/src/generated/sdk_io.dart'; | 24 import 'package:analyzer/src/generated/sdk_io.dart'; |
| 25 import 'package:analyzer/src/generated/source_io.dart'; | 25 import 'package:analyzer/src/generated/source_io.dart'; |
| 26 import 'package:analysis_server/src/computers.dart'; | |
| 27 import 'package:analyzer/src/generated/java_engine.dart'; | 26 import 'package:analyzer/src/generated/java_engine.dart'; |
| 28 | 27 |
| 29 | 28 |
| 30 /** | 29 /** |
| 31 * An instance of [DirectoryBasedDartSdk] that is shared between | 30 * An instance of [DirectoryBasedDartSdk] that is shared between |
| 32 * [AnalysisServer] instances to improve performance. | 31 * [AnalysisServer] instances to improve performance. |
| 33 */ | 32 */ |
| 34 final DirectoryBasedDartSdk SHARED_SDK = DirectoryBasedDartSdk.defaultSdk; | 33 final DirectoryBasedDartSdk SHARED_SDK = DirectoryBasedDartSdk.defaultSdk; |
| 35 | 34 |
| 36 class AnalysisServerContextDirectoryManager extends ContextDirectoryManager { | 35 class AnalysisServerContextDirectoryManager extends ContextDirectoryManager { |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 /** | 464 /** |
| 466 * An enumeration of the services provided by the server domain. | 465 * An enumeration of the services provided by the server domain. |
| 467 */ | 466 */ |
| 468 class ServerService extends Enum2<ServerService> { | 467 class ServerService extends Enum2<ServerService> { |
| 469 static const ServerService STATUS = const ServerService('STATUS', 0); | 468 static const ServerService STATUS = const ServerService('STATUS', 0); |
| 470 | 469 |
| 471 static const List<ServerService> VALUES = const [STATUS]; | 470 static const List<ServerService> VALUES = const [STATUS]; |
| 472 | 471 |
| 473 const ServerService(String name, int ordinal) : super(name, ordinal); | 472 const ServerService(String name, int ordinal) : super(name, ordinal); |
| 474 } | 473 } |
| OLD | NEW |