| 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 | 9 |
| 10 import 'package:analyzer/file_system/file_system.dart'; |
| 10 import 'package:analysis_server/src/package_map_provider.dart'; | 11 import 'package:analysis_server/src/package_map_provider.dart'; |
| 11 import 'package:analysis_server/src/resource.dart'; | |
| 12 import 'package:analyzer/src/generated/engine.dart'; | 12 import 'package:analyzer/src/generated/engine.dart'; |
| 13 import 'package:analyzer/src/generated/source.dart'; | 13 import 'package:analyzer/src/generated/source.dart'; |
| 14 import 'package:watcher/watcher.dart'; | 14 import 'package:watcher/watcher.dart'; |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * Information tracked by the [ContextDirectoryManager] for each context. | 17 * Information tracked by the [ContextDirectoryManager] for each context. |
| 18 */ | 18 */ |
| 19 class _ContextDirectoryInfo { | 19 class _ContextDirectoryInfo { |
| 20 /** | 20 /** |
| 21 * Stream subscription we are using to watch the context's directory for | 21 * Stream subscription we are using to watch the context's directory for |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 * Remove the context associated with the given [folder]. | 256 * Remove the context associated with the given [folder]. |
| 257 */ | 257 */ |
| 258 void removeContext(Folder folder); | 258 void removeContext(Folder folder); |
| 259 | 259 |
| 260 /** | 260 /** |
| 261 * Called when the package map for a context has changed. | 261 * Called when the package map for a context has changed. |
| 262 */ | 262 */ |
| 263 void updateContextPackageMap(Folder contextFolder, | 263 void updateContextPackageMap(Folder contextFolder, |
| 264 Map<String, List<Folder>> packageMap); | 264 Map<String, List<Folder>> packageMap); |
| 265 } | 265 } |
| OLD | NEW |