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

Unified Diff: lib/src/multi_package_resolver.dart

Issue 1243503007: fixes #221, initial sync*, async, async* implementation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: lib/src/multi_package_resolver.dart
diff --git a/lib/src/multi_package_resolver.dart b/lib/src/multi_package_resolver.dart
index c4ffbb6c278293007cf11e9b79caafe8a60b3da0..6a9ad1397bba6ed30aa6e8a22465572f4cc4c111 100644
--- a/lib/src/multi_package_resolver.dart
+++ b/lib/src/multi_package_resolver.dart
@@ -19,14 +19,15 @@ class MultiPackageResolver extends UriResolver {
MultiPackageResolver(this.searchPaths);
@override
- Source resolveAbsolute(Uri uri) {
+ Source resolveAbsolute(Uri uri, [Uri actualUri]) {
var candidates = _expandPath(uri);
if (candidates == null) return null;
for (var path in candidates) {
var resolvedPath = _resolve(path);
if (resolvedPath != null) {
- return new FileBasedSource(new JavaFile(resolvedPath), uri);
+ return new FileBasedSource(
+ new JavaFile(resolvedPath), actualUri != null ? actualUri : uri);
}
}
return null;

Powered by Google App Engine
This is Rietveld 408576698