| OLD | NEW |
| 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 pub.solver.version_solver; | 5 library pub.solver.version_solver; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import "dart:convert"; | 8 import "dart:convert"; |
| 9 | 9 |
| 10 import '../lock_file.dart'; | 10 import '../lock_file.dart'; |
| 11 import '../log.dart' as log; | 11 import '../log.dart' as log; |
| 12 import '../package.dart'; | 12 import '../package.dart'; |
| 13 import '../pubspec.dart'; | 13 import '../pubspec.dart'; |
| 14 import '../source.dart'; | |
| 15 import '../source_registry.dart'; | 14 import '../source_registry.dart'; |
| 16 import '../version.dart'; | 15 import '../version.dart'; |
| 17 import '../utils.dart'; | 16 import '../utils.dart'; |
| 18 import 'backtracking_solver.dart'; | 17 import 'backtracking_solver.dart'; |
| 19 | 18 |
| 20 /// Attempts to select the best concrete versions for all of the transitive | 19 /// Attempts to select the best concrete versions for all of the transitive |
| 21 /// dependencies of [root] taking into account all of the [VersionConstraint]s | 20 /// dependencies of [root] taking into account all of the [VersionConstraint]s |
| 22 /// that those dependencies place on each other and the requirements imposed by | 21 /// that those dependencies place on each other and the requirements imposed by |
| 23 /// [lockFile]. | 22 /// [lockFile]. |
| 24 /// | 23 /// |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 Iterable<Dependency> dependencies) | 287 Iterable<Dependency> dependencies) |
| 289 : super(package, dependencies); | 288 : super(package, dependencies); |
| 290 | 289 |
| 291 String get _message => "Incompatible dependencies on '$package'"; | 290 String get _message => "Incompatible dependencies on '$package'"; |
| 292 | 291 |
| 293 String _describeDependency(PackageDep dep) { | 292 String _describeDependency(PackageDep dep) { |
| 294 // TODO(nweiz): Dump descriptions to YAML when that's supported. | 293 // TODO(nweiz): Dump descriptions to YAML when that's supported. |
| 295 return "depends on it with description ${JSON.encode(dep.description)}"; | 294 return "depends on it with description ${JSON.encode(dep.description)}"; |
| 296 } | 295 } |
| 297 } | 296 } |
| OLD | NEW |