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

Unified Diff: lib/src/source/unknown.dart

Issue 2079303003: Track Source objects in PackageNames. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Code review changes Created 4 years, 6 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 | « lib/src/source/path.dart ('k') | lib/src/source_registry.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/source/unknown.dart
diff --git a/lib/src/source/unknown.dart b/lib/src/source/unknown.dart
index 3ed09e0f2aaf13bcccb20890c2c4b2e4d8d69edf..dc995951de3265235752c264c23ed11434b3ff07 100644
--- a/lib/src/source/unknown.dart
+++ b/lib/src/source/unknown.dart
@@ -35,11 +35,13 @@ class UnknownSource extends Source {
bool descriptionsEqual(description1, description2) =>
description1 == description2;
+ int hashDescription(description) => description.hashCode;
+
PackageRef parseRef(String name, description, {String containingPath}) =>
- new PackageRef(name, this.name, description);
+ new PackageRef(name, this, description);
PackageId parseId(String name, Version version, description) =>
- new PackageId(name, this.name, version, description);
+ new PackageId(name, this, version, description);
}
class _BoundUnknownSource extends BoundSource {
« no previous file with comments | « lib/src/source/path.dart ('k') | lib/src/source_registry.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698