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

Side by Side Diff: lib/src/package_graph.dart

Issue 1585513002: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « lib/src/package.dart ('k') | lib/src/preprocess.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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.package_graph;
6
7 import 'barback/transformer_cache.dart'; 5 import 'barback/transformer_cache.dart';
8 import 'entrypoint.dart'; 6 import 'entrypoint.dart';
9 import 'lock_file.dart'; 7 import 'lock_file.dart';
10 import 'package.dart'; 8 import 'package.dart';
11 import 'solver/version_solver.dart'; 9 import 'solver/version_solver.dart';
12 import 'source/cached.dart'; 10 import 'source/cached.dart';
13 import 'utils.dart'; 11 import 'utils.dart';
14 12
15 /// A holistic view of the entire transitive dependency graph for an entrypoint. 13 /// A holistic view of the entire transitive dependency graph for an entrypoint.
16 class PackageGraph { 14 class PackageGraph {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 bool isPackageStatic(String package) { 150 bool isPackageStatic(String package) {
153 var id = lockFile.packages[package]; 151 var id = lockFile.packages[package];
154 if (id == null) return false; 152 if (id == null) return false;
155 153
156 var source = entrypoint.cache.sources[id.source]; 154 var source = entrypoint.cache.sources[id.source];
157 if (source is! CachedSource) return false; 155 if (source is! CachedSource) return false;
158 156
159 return packages[package].pubspec.transformers.isEmpty; 157 return packages[package].pubspec.transformers.isEmpty;
160 } 158 }
161 } 159 }
OLDNEW
« no previous file with comments | « lib/src/package.dart ('k') | lib/src/preprocess.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698