Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: utils/pub/pubspec.dart

Issue 11622011: Restructure YAML package suitable for pub lish (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add yaml exclude Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/pub/lock_file.dart ('k') | utils/pub/yaml/composer.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « utils/pub/lock_file.dart ('k') | utils/pub/yaml/composer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698