| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 /** | 41 /** |
| 42 * The default options used to create new analysis contexts. | 42 * The default options used to create new analysis contexts. |
| 43 */ | 43 */ |
| 44 AnalysisOptionsImpl defaultOptions = new AnalysisOptionsImpl(); | 44 AnalysisOptionsImpl defaultOptions = new AnalysisOptionsImpl(); |
| 45 | 45 |
| 46 AnalysisServerContextDirectoryManager(this.analysisServer, ResourceProvider re
sourceProvider) | 46 AnalysisServerContextDirectoryManager(this.analysisServer, ResourceProvider re
sourceProvider) |
| 47 : super(resourceProvider); | 47 : super(resourceProvider); |
| 48 | 48 |
| 49 @override | 49 @override |
| 50 void addContext(Folder folder, File pubspecFile) { | 50 void addContext(Folder folder) { |
| 51 Map<String, List<Folder>> packageMap = | 51 Map<String, List<Folder>> packageMap = |
| 52 analysisServer.packageMapProvider.computePackageMap(folder); | 52 analysisServer.packageMapProvider.computePackageMap(folder); |
| 53 ContextDirectory contextDirectory = new ContextDirectory( | 53 ContextDirectory contextDirectory = new ContextDirectory( |
| 54 analysisServer.defaultSdk, resourceProvider, folder, packageMap); | 54 analysisServer.defaultSdk, resourceProvider, folder, packageMap); |
| 55 analysisServer.folderMap[folder] = contextDirectory; | 55 analysisServer.folderMap[folder] = contextDirectory; |
| 56 AnalysisContext context = contextDirectory.context; | 56 AnalysisContext context = contextDirectory.context; |
| 57 context.analysisOptions = new AnalysisOptionsImpl.con1(defaultOptions); | 57 context.analysisOptions = new AnalysisOptionsImpl.con1(defaultOptions); |
| 58 analysisServer.schedulePerformAnalysisOperation(context); | 58 analysisServer.schedulePerformAnalysisOperation(context); |
| 59 } | 59 } |
| 60 | 60 |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 /** | 613 /** |
| 614 * An enumeration of the services provided by the server domain. | 614 * An enumeration of the services provided by the server domain. |
| 615 */ | 615 */ |
| 616 class ServerService extends Enum2<ServerService> { | 616 class ServerService extends Enum2<ServerService> { |
| 617 static const ServerService STATUS = const ServerService('STATUS', 0); | 617 static const ServerService STATUS = const ServerService('STATUS', 0); |
| 618 | 618 |
| 619 static const List<ServerService> VALUES = const [STATUS]; | 619 static const List<ServerService> VALUES = const [STATUS]; |
| 620 | 620 |
| 621 const ServerService(String name, int ordinal) : super(name, ordinal); | 621 const ServerService(String name, int ordinal) : super(name, ordinal); |
| 622 } | 622 } |
| OLD | NEW |