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

Issue 1528523003: Clean up the semantics of package descriptions. (Closed)

Created:
5 years ago by nweiz
Modified:
5 years ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/pub.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Clean up the semantics of package descriptions. This folds the distinction between "resolved" and "unresolved" descriptions into the distinction between PackageIds and PackageRefs. In other words, all PackageIds now have resolved descriptions and all PackageRefs now have unresolved descriptions. This makes it easier to track which descriptions are resolved and express resolution constraints via the type system. This also restricts the creation of PackageRefs and PackageIds to source classes, which helps ensure that the description format—which is an implementation detail—doesn't leak into surrounding code. R=rnystrom@google.com Committed: https://github.com/dart-lang/pub/commit/a69f0c9c1f1cbc029969ae0fba9a8bc6cdedf467

Patch Set 1 #

Total comments: 4

Patch Set 2 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+417 lines, -332 lines) Patch
M lib/src/command/cache_add.dart View 3 chunks +10 lines, -12 lines 0 comments Download
M lib/src/entrypoint.dart View 2 chunks +11 lines, -13 lines 0 comments Download
M lib/src/global_packages.dart View 6 chunks +11 lines, -14 lines 0 comments Download
M lib/src/lock_file.dart View 3 chunks +8 lines, -26 lines 0 comments Download
M lib/src/package.dart View 1 4 chunks +25 lines, -8 lines 0 comments Download
M lib/src/pubspec.dart View 1 chunk +4 lines, -6 lines 0 comments Download
M lib/src/solver/backtracking_solver.dart View 3 chunks +4 lines, -6 lines 0 comments Download
M lib/src/solver/version_solver.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/src/source.dart View 7 chunks +54 lines, -46 lines 0 comments Download
M lib/src/source/cached.dart View 2 chunks +3 lines, -6 lines 0 comments Download
M lib/src/source/git.dart View 1 7 chunks +155 lines, -131 lines 0 comments Download
M lib/src/source/hosted.dart View 5 chunks +36 lines, -6 lines 0 comments Download
M lib/src/source/path.dart View 5 chunks +50 lines, -35 lines 0 comments Download
M lib/src/source/unknown.dart View 3 chunks +11 lines, -3 lines 0 comments Download
M lib/src/system_cache.dart View 1 chunk +0 lines, -3 lines 0 comments Download
M lib/src/validator/dependency.dart View 2 chunks +3 lines, -2 lines 0 comments Download
M test/get/git/require_pubspec_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M test/lock_file_test.dart View 2 chunks +11 lines, -4 lines 0 comments Download
M test/pubspec_test.dart View 2 chunks +8 lines, -3 lines 0 comments Download
M test/upgrade/git/upgrade_to_nonexistent_pubspec_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M test/version_solver_test.dart View 3 chunks +10 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
nweiz
5 years ago (2015-12-15 02:00:28 UTC) #1
Bob Nystrom
Couple of small things, but LGTM. Really nice! https://codereview.chromium.org/1528523003/diff/1/lib/src/package.dart File lib/src/package.dart (right): https://codereview.chromium.org/1528523003/diff/1/lib/src/package.dart#newcode350 lib/src/package.dart:350: /// ...
5 years ago (2015-12-17 22:57:17 UTC) #2
nweiz
Code review changes
5 years ago (2015-12-17 23:11:15 UTC) #3
nweiz
5 years ago (2015-12-17 23:11:32 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
a69f0c9c1f1cbc029969ae0fba9a8bc6cdedf467 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698