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

Side by Side Diff: lib/src/barback/pub_package_provider.dart

Issue 1162603009: A few more fixes for testing in the repo. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | lib/src/io.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.pub_package_provider; 5 library pub.pub_package_provider;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:barback/barback.dart'; 10 import 'package:barback/barback.dart';
11 import 'package:path/path.dart' as path; 11 import 'package:path/path.dart' as path;
12 12
13 import '../io.dart'; 13 import '../io.dart';
14 import '../package_graph.dart'; 14 import '../package_graph.dart';
15 import '../preprocess.dart'; 15 import '../preprocess.dart';
16 import '../sdk.dart' as sdk; 16 import '../sdk.dart' as sdk;
17 import '../utils.dart'; 17 import '../utils.dart';
18 18
19
20 import '../log.dart' as log;
21
22 /// The path to the lib directory of the compiler_unsupported package used by 19 /// The path to the lib directory of the compiler_unsupported package used by
23 /// pub. 20 /// pub.
24 /// 21 ///
25 /// This is used to make sure dart2js is running against its own version of its 22 /// This is used to make sure dart2js is running against its own version of its
26 /// internal libraries when running from the pub repo. It's `null` if we're 23 /// internal libraries when running from the pub repo. It's `null` if we're
27 /// running from the Dart repo or from the built SDK. 24 /// running from the Dart repo or from the built SDK.
28 final _compilerUnsupportedLib = (() { 25 final _compilerUnsupportedLib = (() {
29 if (runningFromSdk) return null; 26 if (runningFromSdk) return null;
30 if (runningFromDartRepo) return null; 27 if (runningFromDartRepo) return null;
31 28
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } else { 152 } else {
156 var package = _graph.packages[packageName]; 153 var package = _graph.packages[packageName];
157 return new Stream.fromIterable( 154 return new Stream.fromIterable(
158 package.listFiles(beneath: 'lib').map((file) { 155 package.listFiles(beneath: 'lib').map((file) {
159 return new AssetId(packageName, 156 return new AssetId(packageName,
160 path.toUri(package.relative(file)).toString()); 157 path.toUri(package.relative(file)).toString());
161 })); 158 }));
162 } 159 }
163 } 160 }
164 } 161 }
OLDNEW
« no previous file with comments | « no previous file | lib/src/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698