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

Side by Side Diff: utils/pub/package.dart

Issue 10993059: Stop using the Hashable interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Another space removed. Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/utils/vim/syntax/dart.vim ('k') | utils/pub/version.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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('package'); 5 #library('package');
6 6
7 #import('io.dart'); 7 #import('io.dart');
8 #import('pubspec.dart'); 8 #import('pubspec.dart');
9 #import('source.dart'); 9 #import('source.dart');
10 #import('source_registry.dart'); 10 #import('source_registry.dart');
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 /** 88 /**
89 * An unambiguous resolved reference to a package. A package ID contains enough 89 * An unambiguous resolved reference to a package. A package ID contains enough
90 * information to correctly install the package. 90 * information to correctly install the package.
91 * 91 *
92 * Note that it's possible for multiple distinct package IDs to point to 92 * Note that it's possible for multiple distinct package IDs to point to
93 * different directories that happen to contain identical packages. For example, 93 * different directories that happen to contain identical packages. For example,
94 * the same package may be available from multiple sources. As far as Pub is 94 * the same package may be available from multiple sources. As far as Pub is
95 * concerned, those packages are different. 95 * concerned, those packages are different.
96 */ 96 */
97 class PackageId implements Comparable, Hashable { 97 class PackageId implements Comparable {
98 /// The name of the package being identified. 98 /// The name of the package being identified.
99 final String name; 99 final String name;
100 100
101 /** 101 /**
102 * The [Source] used to look up this package given its [description]. 102 * The [Source] used to look up this package given its [description].
103 */ 103 */
104 final Source source; 104 final Source source;
105 105
106 /** 106 /**
107 * The package's version. 107 * The package's version.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 class PubspecNameMismatchException implements Exception { 214 class PubspecNameMismatchException implements Exception {
215 final String expectedName; 215 final String expectedName;
216 final String actualName; 216 final String actualName;
217 217
218 PubspecNameMismatchException(this.expectedName, this.actualName); 218 PubspecNameMismatchException(this.expectedName, this.actualName);
219 219
220 String toString() => 'The name you specified for your dependency, ' 220 String toString() => 'The name you specified for your dependency, '
221 '"$expectedName", doesn\'t match the name "$actualName" in its pubspec.'; 221 '"$expectedName", doesn\'t match the name "$actualName" in its pubspec.';
222 } 222 }
OLDNEW
« no previous file with comments | « tools/utils/vim/syntax/dart.vim ('k') | utils/pub/version.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698