OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 pub.solver.solve_report; | |
6 | |
7 import 'package:pub_semver/pub_semver.dart'; | 5 import 'package:pub_semver/pub_semver.dart'; |
8 | 6 |
9 import '../lock_file.dart'; | 7 import '../lock_file.dart'; |
10 import '../log.dart' as log; | 8 import '../log.dart' as log; |
11 import '../package.dart'; | 9 import '../package.dart'; |
12 import '../source_registry.dart'; | 10 import '../source_registry.dart'; |
13 import '../utils.dart'; | 11 import '../utils.dart'; |
14 import 'version_solver.dart'; | 12 import 'version_solver.dart'; |
15 | 13 |
16 /// Unlike [SolveResult], which is the static data describing a resolution, | 14 /// Unlike [SolveResult], which is the static data describing a resolution, |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 void _writeId(PackageId id) { | 238 void _writeId(PackageId id) { |
241 _output.write(id.version); | 239 _output.write(id.version); |
242 | 240 |
243 var source = _sources[id.source]; | 241 var source = _sources[id.source]; |
244 if (source != _sources.defaultSource) { | 242 if (source != _sources.defaultSource) { |
245 var description = source.formatDescription(_root.dir, id.description); | 243 var description = source.formatDescription(_root.dir, id.description); |
246 _output.write(" from ${id.source} $description"); | 244 _output.write(" from ${id.source} $description"); |
247 } | 245 } |
248 } | 246 } |
249 } | 247 } |
OLD | NEW |