| 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('io.dart'); | |
| 8 #import('package.dart'); | 7 #import('package.dart'); |
| 9 #import('source.dart'); | 8 #import('source.dart'); |
| 10 #import('source_registry.dart'); | 9 #import('source_registry.dart'); |
| 11 #import('utils.dart'); | 10 #import('utils.dart'); |
| 12 #import('version.dart'); | 11 #import('version.dart'); |
| 13 #import('yaml/yaml.dart'); | 12 #import('yaml/yaml.dart'); |
| 14 | 13 |
| 15 /** | 14 /** |
| 16 * The parsed and validated contents of a pubspec file. | 15 * The parsed and validated contents of a pubspec file. |
| 17 */ | 16 */ |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 source.validateDescription(description); | 98 source.validateDescription(description); |
| 100 | 99 |
| 101 dependencies.add(new PackageRef( | 100 dependencies.add(new PackageRef( |
| 102 name, source, Version.none, description)); | 101 name, source, Version.none, description)); |
| 103 }); | 102 }); |
| 104 } | 103 } |
| 105 | 104 |
| 106 return new Pubspec._(version, dependencies); | 105 return new Pubspec._(version, dependencies); |
| 107 } | 106 } |
| 108 } | 107 } |
| OLD | NEW |