| 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 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'; |
| 11 import 'version.dart'; | 11 import 'version.dart'; |
| 12 import 'yaml/yaml.dart'; | 12 import '../../pkg/yaml/lib/yaml.dart'; |
| 13 | 13 |
| 14 /// The parsed and validated contents of a pubspec file. | 14 /// The parsed and validated contents of a pubspec file. |
| 15 class Pubspec { | 15 class Pubspec { |
| 16 /// This package's name. | 16 /// This package's name. |
| 17 final String name; | 17 final String name; |
| 18 | 18 |
| 19 /// This package's version. | 19 /// This package's version. |
| 20 final Version version; | 20 final Version version; |
| 21 | 21 |
| 22 /// The packages this package depends on. | 22 /// The packages this package depends on. |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 /// The environment-related metadata in the pubspec. Corresponds to the data | 209 /// The environment-related metadata in the pubspec. Corresponds to the data |
| 210 /// under the "environment:" key in the pubspec. | 210 /// under the "environment:" key in the pubspec. |
| 211 class PubspecEnvironment { | 211 class PubspecEnvironment { |
| 212 /// The version constraint specifying which SDK versions this package works | 212 /// The version constraint specifying which SDK versions this package works |
| 213 /// with. | 213 /// with. |
| 214 final VersionConstraint sdkVersion; | 214 final VersionConstraint sdkVersion; |
| 215 | 215 |
| 216 PubspecEnvironment([VersionConstraint sdk]) | 216 PubspecEnvironment([VersionConstraint sdk]) |
| 217 : sdkVersion = sdk != null ? sdk : VersionConstraint.any; | 217 : sdkVersion = sdk != null ? sdk : VersionConstraint.any; |
| 218 } | 218 } |
| OLD | NEW |