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

Issue 13952013: Create a "PackageRef" class that defines a versionless package reference. (Closed)

Created:
7 years, 8 months ago by Bob Nystrom
Modified:
7 years, 7 months ago
Reviewers:
nweiz
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Create a "PackageRef" class that defines a versionless package reference. R=nweiz@google.com Committed: https://code.google.com/p/dart/source/detail?r=22187

Patch Set 1 #

Total comments: 36

Patch Set 2 : Revised. #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -207 lines) Patch
M sdk/lib/_internal/pub/lib/src/package.dart View 1 2 2 chunks +96 lines, -86 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/path_source.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/pubspec.dart View 4 chunks +7 lines, -7 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart View 5 chunks +63 lines, -65 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/solver/version_solver.dart View 8 chunks +19 lines, -30 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/source.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/validator/dependency.dart View 3 chunks +12 lines, -12 lines 0 comments Download
M sdk/lib/_internal/pub/test/version_solver_test.dart View 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Bob Nystrom
7 years, 8 months ago (2013-04-25 00:47:22 UTC) #1
nweiz
https://codereview.chromium.org/13952013/diff/1/sdk/lib/_internal/pub/lib/src/package.dart File sdk/lib/_internal/pub/lib/src/package.dart (left): https://codereview.chromium.org/13952013/diff/1/sdk/lib/_internal/pub/lib/src/package.dart#oldcode138 sdk/lib/_internal/pub/lib/src/package.dart:138: int compareTo(PackageId other) { What were we using this ...
7 years, 8 months ago (2013-04-25 21:07:19 UTC) #2
Bob Nystrom
Broke the subclassing between PackageRef and PackageID and PackageDep. Much better now. https://codereview.chromium.org/13952013/diff/1/sdk/lib/_internal/pub/lib/src/package.dart File sdk/lib/_internal/pub/lib/src/package.dart ...
7 years, 8 months ago (2013-04-26 22:17:49 UTC) #3
nweiz
lgtm! I like this change a lot post-inheritance, it makes it a lot clearer when ...
7 years, 8 months ago (2013-04-27 00:12:18 UTC) #4
Bob Nystrom
Committed patchset #3 manually as r22187 (presubmit successful).
7 years, 7 months ago (2013-04-30 17:40:28 UTC) #5
Bob Nystrom
7 years, 7 months ago (2013-04-30 17:44:25 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/13952013/diff/5001/sdk/lib/_internal/pub/lib/...
File sdk/lib/_internal/pub/lib/src/package.dart (right):

https://codereview.chromium.org/13952013/diff/5001/sdk/lib/_internal/pub/lib/...
sdk/lib/_internal/pub/lib/src/package.dart:135: if (other is! PackageRef) return
false;
On 2013/04/27 00:12:18, nweiz wrote:
> You can write this as "return other is PackageRef && ...", also below

Done.

Powered by Google App Engine
This is Rietveld 408576698