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

Side by Side Diff: utils/pub/pubspec.dart

Issue 10690032: Make VersionSolver source- and description-aware. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « utils/pub/package.dart ('k') | utils/pub/repo_source.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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('pubspec'); 5 #library('pubspec');
6 6
7 #import('package.dart'); 7 #import('package.dart');
8 #import('source.dart'); 8 #import('source.dart');
9 #import('source_registry.dart'); 9 #import('source_registry.dart');
10 #import('utils.dart'); 10 #import('utils.dart');
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 source = sources[sourceName]; 92 source = sources[sourceName];
93 description = spec[sourceName]; 93 description = spec[sourceName];
94 } else { 94 } else {
95 throw new FormatException( 95 throw new FormatException(
96 'Dependency specification $spec must be a string or a mapping.'); 96 'Dependency specification $spec must be a string or a mapping.');
97 } 97 }
98 98
99 source.validateDescription(description); 99 source.validateDescription(description);
100 100
101 dependencies.add(new PackageRef( 101 dependencies.add(new PackageRef(
102 name, source, versionConstraint, description)); 102 source, versionConstraint, description));
103 }); 103 });
104 } 104 }
105 105
106 return new Pubspec(version, dependencies); 106 return new Pubspec(version, dependencies);
107 } 107 }
108 } 108 }
OLDNEW
« no previous file with comments | « utils/pub/package.dart ('k') | utils/pub/repo_source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698