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 source.package_map_provider; | 5 library analyzer.source.package_map_provider; |
6 | 6 |
7 import 'package:analyzer/file_system/file_system.dart'; | 7 import 'package:analyzer/file_system/file_system.dart'; |
8 | 8 |
9 /** | 9 /** |
10 * Data structure output by PackageMapProvider. This contains both the package | 10 * Data structure output by PackageMapProvider. This contains both the package |
11 * map and dependency information. | 11 * map and dependency information. |
12 */ | 12 */ |
13 class PackageMapInfo { | 13 class PackageMapInfo { |
14 /** | 14 /** |
15 * The package map itself. This is a map from package name to a list of | 15 * The package map itself. This is a map from package name to a list of |
(...skipping 19 matching lines...) Expand all Loading... |
35 */ | 35 */ |
36 abstract class PackageMapProvider { | 36 abstract class PackageMapProvider { |
37 /** | 37 /** |
38 * Compute a package map for the given folder, if possible. | 38 * Compute a package map for the given folder, if possible. |
39 * | 39 * |
40 * If a package map can't be computed (e.g. because an error occurred), a | 40 * If a package map can't be computed (e.g. because an error occurred), a |
41 * [PackageMapInfo] will still be returned, but its packageMap will be null. | 41 * [PackageMapInfo] will still be returned, but its packageMap will be null. |
42 */ | 42 */ |
43 PackageMapInfo computePackageMap(Folder folder); | 43 PackageMapInfo computePackageMap(Folder folder); |
44 } | 44 } |
OLD | NEW |