| 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 'yaml/yaml.dart'; |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * The parsed and validated contents of a pubspec file. | 15 * The parsed and validated contents of a pubspec file. |
| 16 */ | 16 */ |
| 17 class Pubspec { | 17 class Pubspec { |
| 18 /** | 18 /** |
| 19 * This package's name. | 19 * This package's name. |
| 20 */ | 20 */ |
| 21 final String name; | 21 final String name; |
| 22 | 22 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 source.validateDescription(description, fromLockFile: false); | 111 source.validateDescription(description, fromLockFile: false); |
| 112 | 112 |
| 113 dependencies.add(new PackageRef( | 113 dependencies.add(new PackageRef( |
| 114 name, source, versionConstraint, description)); | 114 name, source, versionConstraint, description)); |
| 115 }); | 115 }); |
| 116 } | 116 } |
| 117 | 117 |
| 118 return new Pubspec(name, version, dependencies); | 118 return new Pubspec(name, version, dependencies); |
| 119 } | 119 } |
| 120 } | 120 } |
| OLD | NEW |