| 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 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 944 new Future(performOperation); | 944 new Future(performOperation); |
| 945 performOperationPending = true; | 945 performOperationPending = true; |
| 946 } | 946 } |
| 947 } | 947 } |
| 948 | 948 |
| 949 | 949 |
| 950 class AnalysisServerOptions { | 950 class AnalysisServerOptions { |
| 951 bool enableIncrementalResolutionApi = false; | 951 bool enableIncrementalResolutionApi = false; |
| 952 bool enableIncrementalResolutionValidation = false; | 952 bool enableIncrementalResolutionValidation = false; |
| 953 bool noErrorNotification = false; | 953 bool noErrorNotification = false; |
| 954 String fileReadMode = 'as-is'; |
| 954 } | 955 } |
| 955 | 956 |
| 956 /** | 957 /** |
| 957 * A [ContextsChangedEvent] indicate what contexts were added or removed. | 958 * A [ContextsChangedEvent] indicate what contexts were added or removed. |
| 958 * | 959 * |
| 959 * No context should be added to the event more than once. It does not make | 960 * No context should be added to the event more than once. It does not make |
| 960 * sense, for example, for a context to be both added and removed. | 961 * sense, for example, for a context to be both added and removed. |
| 961 */ | 962 */ |
| 962 class ContextsChangedEvent { | 963 class ContextsChangedEvent { |
| 963 | 964 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 * [packageUriResolver]. | 1084 * [packageUriResolver]. |
| 1084 */ | 1085 */ |
| 1085 SourceFactory _createSourceFactory(UriResolver packageUriResolver) { | 1086 SourceFactory _createSourceFactory(UriResolver packageUriResolver) { |
| 1086 List<UriResolver> resolvers = <UriResolver>[ | 1087 List<UriResolver> resolvers = <UriResolver>[ |
| 1087 new DartUriResolver(analysisServer.defaultSdk), | 1088 new DartUriResolver(analysisServer.defaultSdk), |
| 1088 new ResourceUriResolver(resourceProvider), | 1089 new ResourceUriResolver(resourceProvider), |
| 1089 packageUriResolver]; | 1090 packageUriResolver]; |
| 1090 return new SourceFactory(resolvers); | 1091 return new SourceFactory(resolvers); |
| 1091 } | 1092 } |
| 1092 } | 1093 } |
| OLD | NEW |