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 pub.package; | |
6 | |
7 import 'dart:io'; | 5 import 'dart:io'; |
8 | 6 |
9 import 'package:barback/barback.dart'; | 7 import 'package:barback/barback.dart'; |
10 import 'package:path/path.dart' as p; | 8 import 'package:path/path.dart' as p; |
11 import 'package:pub_semver/pub_semver.dart'; | 9 import 'package:pub_semver/pub_semver.dart'; |
12 | 10 |
13 import 'barback/transformer_id.dart'; | 11 import 'barback/transformer_id.dart'; |
14 import 'io.dart'; | 12 import 'io.dart'; |
15 import 'git.dart' as git; | 13 import 'git.dart' as git; |
16 import 'pubspec.dart'; | 14 import 'pubspec.dart'; |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 | 449 |
452 bool operator ==(other) { | 450 bool operator ==(other) { |
453 // TODO(rnystrom): We're assuming here that we don't need to delve into the | 451 // TODO(rnystrom): We're assuming here that we don't need to delve into the |
454 // description. | 452 // description. |
455 return other is PackageDep && | 453 return other is PackageDep && |
456 other.name == name && | 454 other.name == name && |
457 other.source == source && | 455 other.source == source && |
458 other.constraint == constraint; | 456 other.constraint == constraint; |
459 } | 457 } |
460 } | 458 } |
OLD | NEW |