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

Side by Side Diff: sdk/lib/_internal/pub_generated/lib/src/solver/solve_report.dart

Issue 602253002: Use pub_semver package in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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
OLDNEW
1 library pub.solver.solve_report; 1 library pub.solver.solve_report;
2 import 'package:pub_semver/pub_semver.dart';
2 import '../lock_file.dart'; 3 import '../lock_file.dart';
3 import '../log.dart' as log; 4 import '../log.dart' as log;
4 import '../package.dart'; 5 import '../package.dart';
5 import '../source_registry.dart'; 6 import '../source_registry.dart';
6 import '../utils.dart'; 7 import '../utils.dart';
7 import '../version.dart';
8 import 'version_solver.dart'; 8 import 'version_solver.dart';
9 class SolveReport { 9 class SolveReport {
10 final SolveType _type; 10 final SolveType _type;
11 final SourceRegistry _sources; 11 final SourceRegistry _sources;
12 final Package _root; 12 final Package _root;
13 final LockFile _previousLockFile; 13 final LockFile _previousLockFile;
14 final SolveResult _result; 14 final SolveResult _result;
15 final _dependencies = new Map<String, PackageId>(); 15 final _dependencies = new Map<String, PackageId>();
16 final _output = new StringBuffer(); 16 final _output = new StringBuffer();
17 SolveReport(this._type, this._sources, this._root, this._previousLockFile, 17 SolveReport(this._type, this._sources, this._root, this._previousLockFile,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 154 }
155 void _writeId(PackageId id) { 155 void _writeId(PackageId id) {
156 _output.write(id.version); 156 _output.write(id.version);
157 var source = _sources[id.source]; 157 var source = _sources[id.source];
158 if (source != _sources.defaultSource) { 158 if (source != _sources.defaultSource) {
159 var description = source.formatDescription(_root.dir, id.description); 159 var description = source.formatDescription(_root.dir, id.description);
160 _output.write(" from ${id.source} $description"); 160 _output.write(" from ${id.source} $description");
161 } 161 }
162 } 162 }
163 } 163 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698