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

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

Issue 1831133005: Consolidate duplicate code for resloving URIs. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Sort Created 4 years, 9 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: 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 092671e633719f7d1dd89efdb2f151bd160dab4b..03879055148824664fd4357a95214210b3e38b0a 100644
--- a/pkg/analyzer/lib/src/generated/source.dart
+++ b/pkg/analyzer/lib/src/generated/source.dart
@@ -404,11 +404,6 @@ class NonExistingSource extends Source {
@override
bool exists() => false;
-
- @override
- Uri resolveRelativeUri(Uri relativeUri) {
- throw new UnsupportedOperationException('$fullName does not exist.');
- }
}
/**
@@ -547,21 +542,6 @@ abstract class Source implements AnalysisTarget {
* @return `true` if this source exists
*/
bool exists();
-
- /**
- * Resolve the relative URI against the URI associated with this source object.
- *
- * Note: This method is not intended for public use, it is only visible out of necessity. It is
- * only intended to be invoked by a [SourceFactory]. Source factories will
- * only invoke this method if the URI is relative, so implementations of this method are not
- * required to, and generally do not, verify the argument. The result of invoking this method with
- * an absolute URI is intentionally left unspecified.
- *
- * @param relativeUri the relative URI to be resolved against this source
- * @return the URI to which given URI was resolved
- * @throws AnalysisException if the relative URI could not be resolved
- */
- Uri resolveRelativeUri(Uri relativeUri);
}
/**

Powered by Google App Engine
This is Rietveld 408576698