| 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:analysis_server/src/package_map_provider.dart'; | |
| 11 import 'package:analyzer/file_system/file_system.dart'; | 10 import 'package:analyzer/file_system/file_system.dart'; |
| 11 import 'package:analyzer/source/package_map_provider.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:path/path.dart' as pathos; | 14 import 'package:path/path.dart' as pathos; |
| 15 import 'package:watcher/watcher.dart'; | 15 import 'package:watcher/watcher.dart'; |
| 16 | 16 |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * File name of pubspec files. | 19 * File name of pubspec files. |
| 20 */ | 20 */ |
| 21 const String PUBSPEC_NAME = 'pubspec.yaml'; | 21 const String PUBSPEC_NAME = 'pubspec.yaml'; |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 return excludes(resource.path); | 560 return excludes(resource.path); |
| 561 } | 561 } |
| 562 | 562 |
| 563 /** | 563 /** |
| 564 * Returns `true` if [path] is the pubspec file of this context. | 564 * Returns `true` if [path] is the pubspec file of this context. |
| 565 */ | 565 */ |
| 566 bool isPubspec(String path) { | 566 bool isPubspec(String path) { |
| 567 return path == pubspecPath; | 567 return path == pubspecPath; |
| 568 } | 568 } |
| 569 } | 569 } |
| OLD | NEW |