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

Unified Diff: pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart

Issue 1205373002: Translate package URIs to resource URIs for diagnostics. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Use resourceUri instead of readableUri in source spans. Created 5 years, 6 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 | « pkg/compiler/lib/src/elements/modelx.dart ('k') | tests/compiler/dart2js/memory_compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart
diff --git a/pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart b/pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart
index 51ab110822a6f9bfe708270b64ed7876c4da2064..5bf4b1edf9dc33779b6ecbd125cb00477cfe8844 100644
--- a/pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart
+++ b/pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart
@@ -193,11 +193,11 @@ abstract class Dart2JsElementMirror extends Dart2JsDeclarationMirror {
Script script = getScript();
SourceSpan span;
if (beginToken == null) {
- span = new SourceSpan(script.readableUri, 0, 0);
+ span = new SourceSpan(script.resourceUri, 0, 0);
} else {
Token endToken = getEndToken();
span = mirrorSystem.compiler.spanFromTokens(
- beginToken, endToken, script.readableUri);
+ beginToken, endToken, script.resourceUri);
}
return new Dart2JsSourceLocation(script, span);
}
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | tests/compiler/dart2js/memory_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698