Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Unified Diff: analyzer/lib/source/package_map_provider.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « analyzer/lib/plugin/task.dart ('k') | analyzer/lib/source/package_map_resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: analyzer/lib/source/package_map_provider.dart
diff --git a/analyzer/lib/source/package_map_provider.dart b/analyzer/lib/source/package_map_provider.dart
deleted file mode 100644
index 85b493df653086311a13d6944e7617a6f68593bc..0000000000000000000000000000000000000000
--- a/analyzer/lib/source/package_map_provider.dart
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library source.package_map_provider;
-
-import 'package:analyzer/file_system/file_system.dart';
-
-/**
- * Data structure output by PackageMapProvider. This contains both the package
- * map and dependency information.
- */
-class PackageMapInfo {
- /**
- * The package map itself. This is a map from package name to a list of
- * the folders containing source code for the package.
- *
- * `null` if an error occurred.
- */
- Map<String, List<Folder>> packageMap;
-
- /**
- * Dependency information. This is a set of the paths which were consulted
- * in order to generate the package map. If any of these files is
- * modified, the package map will need to be regenerated.
- */
- Set<String> dependencies;
-
- PackageMapInfo(this.packageMap, this.dependencies);
-}
-
-/**
- * A PackageMapProvider is an entity capable of determining the mapping from
- * package name to source directory for a given folder.
- */
-abstract class PackageMapProvider {
- /**
- * Compute a package map for the given folder, if possible.
- *
- * If a package map can't be computed (e.g. because an error occurred), a
- * [PackageMapInfo] will still be returned, but its packageMap will be null.
- */
- PackageMapInfo computePackageMap(Folder folder);
-}
« no previous file with comments | « analyzer/lib/plugin/task.dart ('k') | analyzer/lib/source/package_map_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698