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

Unified Diff: sdk/lib/_internal/pub_generated/lib/src/io.dart

Issue 747273003: Add a test for pub's async_await compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix a bug and rebuild. Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub_generated/lib/src/io.dart
diff --git a/sdk/lib/_internal/pub_generated/lib/src/io.dart b/sdk/lib/_internal/pub_generated/lib/src/io.dart
index 16682ddf0c97269962928b29138f1cb514267887..fbb7f280285007efa53b4eaf4c527129bd932e21 100644
--- a/sdk/lib/_internal/pub_generated/lib/src/io.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/io.dart
@@ -488,15 +488,13 @@ String assetPath(String target) {
'asset',
target);
} else {
- return path.join(
- path.dirname(libraryPath('pub.io')),
- '..',
- '..',
- 'asset',
- target);
+ return path.join(pubRoot, 'asset', target);
}
}
+/// Returns the path to the root of pub's sources in the Dart repo.
+String get pubRoot => path.join(repoRoot, 'sdk', 'lib', '_internal', 'pub');
+
/// Returns the path to the root of the Dart repository.
///
/// This throws a [StateError] if it's called when running pub from the SDK.
« no previous file with comments | « sdk/lib/_internal/pub_generated/bin/async_compile.dart ('k') | sdk/lib/_internal/pub_generated/test/async_compile_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698