OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_semver.src.version; | |
6 | |
7 import 'dart:math' as math; | 5 import 'dart:math' as math; |
8 | 6 |
9 import 'package:collection/equality.dart'; | 7 import 'package:collection/equality.dart'; |
10 | 8 |
11 import 'patterns.dart'; | 9 import 'patterns.dart'; |
12 import 'version_constraint.dart'; | 10 import 'version_constraint.dart'; |
13 import 'version_range.dart'; | 11 import 'version_range.dart'; |
14 | 12 |
15 /// The equality operator to use for comparing version components. | 13 /// The equality operator to use for comparing version components. |
16 final _equality = const IterableEquality(); | 14 final _equality = const IterableEquality(); |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 // Compare two strings. | 318 // Compare two strings. |
321 return aPart.compareTo(bPart); | 319 return aPart.compareTo(bPart); |
322 } | 320 } |
323 } | 321 } |
324 } | 322 } |
325 | 323 |
326 // The lists are entirely equal. | 324 // The lists are entirely equal. |
327 return 0; | 325 return 0; |
328 } | 326 } |
329 } | 327 } |
OLD | NEW |