| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |