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

Side by Side Diff: sdk/lib/_internal/pub/lib/src/cached_package.dart

Issue 602253002: Use pub_semver package in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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.cached_package; 5 library pub.cached_package;
6 6
7 import 'package:path/path.dart' as p; 7 import 'package:path/path.dart' as p;
8 import 'package:pub_semver/pub_semver.dart';
8 import 'package:yaml/yaml.dart'; 9 import 'package:yaml/yaml.dart';
9 10
10 import 'barback/transformer_config.dart'; 11 import 'barback/transformer_config.dart';
11 import 'io.dart'; 12 import 'io.dart';
12 import 'package.dart'; 13 import 'package.dart';
13 import 'pubspec.dart'; 14 import 'pubspec.dart';
14 import 'version.dart';
15 15
16 /// A [Package] whose `lib` directory has been precompiled and cached. 16 /// A [Package] whose `lib` directory has been precompiled and cached.
17 /// 17 ///
18 /// When users of this class request path information about files that are 18 /// When users of this class request path information about files that are
19 /// cached, this returns the cached information. It also wraps the package's 19 /// cached, this returns the cached information. It also wraps the package's
20 /// pubspec to report no transformers, since the transformations have all been 20 /// pubspec to report no transformers, since the transformations have all been
21 /// applied already. 21 /// applied already.
22 class CachedPackage extends Package { 22 class CachedPackage extends Package {
23 /// The directory contianing the cached assets from this package. 23 /// The directory contianing the cached assets from this package.
24 /// 24 ///
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 String get publishTo => _inner.publishTo; 77 String get publishTo => _inner.publishTo;
78 Map<String, String> get executables => _inner.executables; 78 Map<String, String> get executables => _inner.executables;
79 bool get isPrivate => _inner.isPrivate; 79 bool get isPrivate => _inner.isPrivate;
80 bool get isEmpty => _inner.isEmpty; 80 bool get isEmpty => _inner.isEmpty;
81 List<PubspecException> get allErrors => _inner.allErrors; 81 List<PubspecException> get allErrors => _inner.allErrors;
82 82
83 List<Set<TransformerConfig>> get transformers => const []; 83 List<Set<TransformerConfig>> get transformers => const [];
84 84
85 _CachedPubspec(this._inner); 85 _CachedPubspec(this._inner);
86 } 86 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/barback.dart ('k') | sdk/lib/_internal/pub/lib/src/command/cache_add.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698