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

Unified Diff: pkg/front_end/lib/src/scanner/errors.dart

Issue 2910583002: improve fasta interpolation recovery (Closed)
Patch Set: remove unnecessary label Created 3 years, 7 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/front_end/lib/src/scanner/errors.dart
diff --git a/pkg/front_end/lib/src/scanner/errors.dart b/pkg/front_end/lib/src/scanner/errors.dart
index 17ef2134ef16863e42ae90e71c98fb74beb8e173..ca2a20972639926508bfc0aea952ad0044896006 100644
--- a/pkg/front_end/lib/src/scanner/errors.dart
+++ b/pkg/front_end/lib/src/scanner/errors.dart
@@ -94,7 +94,7 @@ void translateErrorToken(ErrorToken token, ReportError reportError) {
case "UNTERMINATED_STRING_LITERAL":
// TODO(paulberry,ahe): Fasta reports the error location as the entire
// string; analyzer expects the end of the string.
- charOffset = endOffset;
+ charOffset = endOffset - 1;
return _makeError(ScannerErrorCode.UNTERMINATED_STRING_LITERAL, null);
case "UNTERMINATED_MULTI_LINE_COMMENT":

Powered by Google App Engine
This is Rietveld 408576698