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