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

Unified Diff: pkg/compiler/lib/src/native/scanner.dart

Issue 2743633003: [fasta] Add and correct more offsets (Closed)
Patch Set: Fix long line Created 3 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/compiler/lib/src/native/scanner.dart
diff --git a/pkg/compiler/lib/src/native/scanner.dart b/pkg/compiler/lib/src/native/scanner.dart
index 1ce396e7707b557937eed52008729cdd2ad2924e..1b7deb875a89ba091822a82752a97d4215a9065b 100644
--- a/pkg/compiler/lib/src/native/scanner.dart
+++ b/pkg/compiler/lib/src/native/scanner.dart
@@ -35,8 +35,8 @@ Token handleNativeFunctionBody(ElementListener listener, Token token) {
if (identical(token.kind, Tokens.STRING_TOKEN)) {
hasExpression = true;
listener.beginLiteralString(token);
- listener.endLiteralString(0);
token = token.next;
+ listener.endLiteralString(0, token);
ahe 2017/03/09 12:19:37 I recommend making sure that you have tested this
}
listener.endReturnStatement(hasExpression, begin, token);
// TODO(ngeoffray): expect a ';'.

Powered by Google App Engine
This is Rietveld 408576698