| 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 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:analysis_server/src/analysis_logger.dart'; | 10 import 'package:analysis_server/src/analysis_logger.dart'; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 /** | 60 /** |
| 61 * Instances of the class [AnalysisServer] implement a server that listens on a | 61 * Instances of the class [AnalysisServer] implement a server that listens on a |
| 62 * [CommunicationChannel] for analysis requests and process them. | 62 * [CommunicationChannel] for analysis requests and process them. |
| 63 */ | 63 */ |
| 64 class AnalysisServer { | 64 class AnalysisServer { |
| 65 /** | 65 /** |
| 66 * The version of the analysis server. The value should be replaced | 66 * The version of the analysis server. The value should be replaced |
| 67 * automatically during the build. | 67 * automatically during the build. |
| 68 */ | 68 */ |
| 69 static final String VERSION = '0.0.1'; | 69 static final String VERSION = '1.0.0'; |
| 70 | 70 |
| 71 /** | 71 /** |
| 72 * The number of milliseconds to perform operations before inserting | 72 * The number of milliseconds to perform operations before inserting |
| 73 * a 1 millisecond delay so that the VM and dart:io can deliver content | 73 * a 1 millisecond delay so that the VM and dart:io can deliver content |
| 74 * to stdin. This should be removed once the underlying problem is fixed. | 74 * to stdin. This should be removed once the underlying problem is fixed. |
| 75 */ | 75 */ |
| 76 static int performOperationDelayFreqency = 25; | 76 static int performOperationDelayFreqency = 25; |
| 77 | 77 |
| 78 /** | 78 /** |
| 79 * The channel from which requests are received and to which responses should | 79 * The channel from which requests are received and to which responses should |
| (...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 * [packageUriResolver]. | 1132 * [packageUriResolver]. |
| 1133 */ | 1133 */ |
| 1134 SourceFactory _createSourceFactory(UriResolver packageUriResolver) { | 1134 SourceFactory _createSourceFactory(UriResolver packageUriResolver) { |
| 1135 List<UriResolver> resolvers = <UriResolver>[ | 1135 List<UriResolver> resolvers = <UriResolver>[ |
| 1136 new DartUriResolver(analysisServer.defaultSdk), | 1136 new DartUriResolver(analysisServer.defaultSdk), |
| 1137 new ResourceUriResolver(resourceProvider), | 1137 new ResourceUriResolver(resourceProvider), |
| 1138 packageUriResolver]; | 1138 packageUriResolver]; |
| 1139 return new SourceFactory(resolvers); | 1139 return new SourceFactory(resolvers); |
| 1140 } | 1140 } |
| 1141 } | 1141 } |
| OLD | NEW |