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

Unified Diff: pkg/code_transformers/lib/src/dart_sdk.dart

Issue 428303004: Breaking changes in 'analyzer' package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge code_transformers CL Created 6 years, 4 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/code_transformers/lib/src/dart_sdk.dart
diff --git a/pkg/code_transformers/lib/src/dart_sdk.dart b/pkg/code_transformers/lib/src/dart_sdk.dart
index 3438218d514ec87f7fc3656f941ace7b4899b71d..ffc88ebb892e83ebe6a37ec0e1036834b1adc175 100644
--- a/pkg/code_transformers/lib/src/dart_sdk.dart
+++ b/pkg/code_transformers/lib/src/dart_sdk.dart
@@ -108,10 +108,10 @@ class DartSourceProxy implements UriAnnotatedSource {
return new DartSourceProxy(source, uri);
}
- Source resolveRelative(Uri relativeUri) {
- // Assume that the type can be accessed via this URI, since these
- // should only be parts for dart core files.
- return wrap(_proxy.resolveRelative(relativeUri), uri);
+ Uri resolveRelative(Uri relativeUri) {
+ var r = _proxy.resolveRelative(relativeUri);
+ print('$relativeUri => $r using $_proxy');
Siggi Cherem (dart-lang) 2014/08/06 03:07:22 delete print?
scheglov 2014/08/06 18:03:50 Done.
+ return r;
}
bool exists() => _proxy.exists();
@@ -181,6 +181,11 @@ class MockDartSdk implements DartSdk {
}
return src;
}
+
+ @override
+ Source fromFileUri(Uri uri) {
+ throw new UnsupportedError('MockDartSdk.fromFileUri');
+ }
}
class _MockSdkSource implements UriAnnotatedSource {
@@ -209,6 +214,6 @@ class _MockSdkSource implements UriAnnotatedSource {
bool get isInSystemLibrary => true;
- Source resolveRelative(Uri relativeUri) =>
+ Uri resolveRelative(Uri relativeUri) =>
throw new UnsupportedError('not expecting relative urls in dart: mocks');
}

Powered by Google App Engine
This is Rietveld 408576698