| 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 context.directory.manager; | 5 library context.directory.manager; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 import 'dart:convert'; | 9 import 'dart:convert'; |
| 10 import 'dart:core' hide Resource; | 10 import 'dart:core' hide Resource; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 * The analysis context that was created for the [folder]. | 81 * The analysis context that was created for the [folder]. |
| 82 */ | 82 */ |
| 83 AnalysisContext context; | 83 AnalysisContext context; |
| 84 | 84 |
| 85 /** | 85 /** |
| 86 * Map from full path to the [Source] object, for each source that has been | 86 * Map from full path to the [Source] object, for each source that has been |
| 87 * added to the context. | 87 * added to the context. |
| 88 */ | 88 */ |
| 89 Map<String, Source> sources = new HashMap<String, Source>(); | 89 Map<String, Source> sources = new HashMap<String, Source>(); |
| 90 | 90 |
| 91 ContextInfo(this.contextManager, this.parent, Folder folder, | 91 ContextInfo(ContextManagerImpl contextManager, this.parent, Folder folder, |
| 92 File packagespecFile, this.packageRoot) | 92 File packagespecFile, this.packageRoot) |
| 93 : folder = folder, | 93 : contextManager = contextManager, |
| 94 pathFilter = new PathFilter(folder.path, null) { | 94 folder = folder, |
| 95 pathFilter = new PathFilter( |
| 96 contextManager.resourceProvider.pathContext, folder.path, null) { |
| 95 packageDescriptionPath = packagespecFile.path; | 97 packageDescriptionPath = packagespecFile.path; |
| 96 parent.children.add(this); | 98 parent.children.add(this); |
| 97 } | 99 } |
| 98 | 100 |
| 99 /** | 101 /** |
| 100 * Create the virtual [ContextInfo] which acts as an ancestor to all other | 102 * Create the virtual [ContextInfo] which acts as an ancestor to all other |
| 101 * [ContextInfo]s. | 103 * [ContextInfo]s. |
| 102 */ | 104 */ |
| 103 ContextInfo._root() | 105 ContextInfo._root() |
| 104 : contextManager = null, | 106 : contextManager = null, |
| (...skipping 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1332 | 1334 |
| 1333 PackagesFileDisposition(this.packages) {} | 1335 PackagesFileDisposition(this.packages) {} |
| 1334 | 1336 |
| 1335 @override | 1337 @override |
| 1336 String get packageRoot => null; | 1338 String get packageRoot => null; |
| 1337 | 1339 |
| 1338 @override | 1340 @override |
| 1339 Iterable<UriResolver> createPackageUriResolvers( | 1341 Iterable<UriResolver> createPackageUriResolvers( |
| 1340 ResourceProvider resourceProvider) => const <UriResolver>[]; | 1342 ResourceProvider resourceProvider) => const <UriResolver>[]; |
| 1341 } | 1343 } |
| OLD | NEW |