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

Side by Side Diff: lib/src/version.dart

Issue 1843133004: Fix all strong mode warnings. (Closed) Base URL: git@github.com:dart-lang/pub_semver@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/version_union.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) 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 import 'dart:math' as math; 5 import 'dart:math' as math;
6 6
7 import 'package:collection/equality.dart'; 7 import 'package:collection/collection.dart';
8 8
9 import 'patterns.dart'; 9 import 'patterns.dart';
10 import 'version_constraint.dart'; 10 import 'version_constraint.dart';
11 import 'version_range.dart'; 11 import 'version_range.dart';
12 12
13 /// The equality operator to use for comparing version components. 13 /// The equality operator to use for comparing version components.
14 final _equality = const IterableEquality(); 14 final _equality = const IterableEquality();
15 15
16 /// A parsed semantic version number. 16 /// A parsed semantic version number.
17 class Version implements Comparable<Version>, VersionConstraint, VersionRange { 17 class Version implements Comparable<Version>, VersionConstraint, VersionRange {
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 // Compare two strings. 318 // Compare two strings.
319 return aPart.compareTo(bPart); 319 return aPart.compareTo(bPart);
320 } 320 }
321 } 321 }
322 } 322 }
323 323
324 // The lists are entirely equal. 324 // The lists are entirely equal.
325 return 0; 325 return 0;
326 } 326 }
327 } 327 }
OLDNEW
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/version_union.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698