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 'path.dart' as path; | |
Bob Nystrom
2012/12/08 03:36:53
Is this being used here?
nweiz
2012/12/08 03:43:45
Nope, removed.
| |
8 import 'pubspec.dart'; | 9 import 'pubspec.dart'; |
9 import 'source.dart'; | 10 import 'source.dart'; |
10 import 'source_registry.dart'; | 11 import 'source_registry.dart'; |
11 import 'version.dart'; | 12 import 'version.dart'; |
12 | 13 |
13 /** | 14 /** |
14 * A named, versioned, unit of code and resource reuse. | 15 * A named, versioned, unit of code and resource reuse. |
15 */ | 16 */ |
16 class Package { | 17 class Package { |
17 /** | 18 /** |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
221 | 222 |
222 class PubspecNameMismatchException implements Exception { | 223 class PubspecNameMismatchException implements Exception { |
223 final String expectedName; | 224 final String expectedName; |
224 final String actualName; | 225 final String actualName; |
225 | 226 |
226 PubspecNameMismatchException(this.expectedName, this.actualName); | 227 PubspecNameMismatchException(this.expectedName, this.actualName); |
227 | 228 |
228 String toString() => 'The name you specified for your dependency, ' | 229 String toString() => 'The name you specified for your dependency, ' |
229 '"$expectedName", doesn\'t match the name "$actualName" in its pubspec.'; | 230 '"$expectedName", doesn\'t match the name "$actualName" in its pubspec.'; |
230 } | 231 } |
OLD | NEW |