|
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
Total comments: 4
|
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
|
Total messages: 5 (1 generated)
|