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

Unified Diff: dart/lib/compiler/implementation/tree/nodes.dart

Issue 11088003: Fix warnings in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix long line Created 8 years, 2 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: dart/lib/compiler/implementation/tree/nodes.dart
diff --git a/dart/lib/compiler/implementation/tree/nodes.dart b/dart/lib/compiler/implementation/tree/nodes.dart
index d279076354351064a57fbd44e8030b453e374360..9897e2a53ecd4ec7e3ed28ff7c87e79836998c5f 100644
--- a/dart/lib/compiler/implementation/tree/nodes.dart
+++ b/dart/lib/compiler/implementation/tree/nodes.dart
@@ -1635,9 +1635,10 @@ class ScriptTag extends Node {
Identifier prefixNode;
if (prefix !== null) {
SourceString source = prefix.dartString.source;
+ Token prefixToken = prefix.getBeginToken();
Token token = new StringToken.fromSource(IDENTIFIER_INFO, source,
- prefix.token.charOffset);
- token.next = prefix.token.next;
+ prefixToken.charOffset);
+ token.next = prefixToken.next;
prefixNode = new Identifier(token);
}
return new Import(tag.token, argument, prefixNode, null);
« no previous file with comments | « dart/lib/compiler/implementation/scanner/scanner.dart ('k') | dart/lib/compiler/implementation/tree/prettyprint.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698