| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |