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

Unified Diff: pkg/analyzer/lib/src/generated/source.dart

Issue 2640793005: Implement UriResolver.restoreAbsolute() for DartUriResolver. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/all_the_rest_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/source.dart
diff --git a/pkg/analyzer/lib/src/generated/source.dart b/pkg/analyzer/lib/src/generated/source.dart
index 83a4783942ddade0aeb3bf5aabe0c0e34d77c51f..262bfe3b2d79c0b3b4398035afc2a321d4757b1c 100644
--- a/pkg/analyzer/lib/src/generated/source.dart
+++ b/pkg/analyzer/lib/src/generated/source.dart
@@ -174,6 +174,12 @@ class DartUriResolver extends UriResolver {
return _sdk.mapDartUri(uri.toString());
}
+ @override
+ Uri restoreAbsolute(Source source) {
+ Source dartSource = _sdk.fromFileUri(source.uri);
+ return dartSource?.uri;
+ }
+
/**
* Return `true` if the given URI is a `dart-ext:` URI.
*
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/all_the_rest_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698