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

Unified Diff: pkg/front_end/lib/src/fasta/scanner/string_scanner.dart

Issue 3002493002: generate synthetic and error tokens when missing digit (Closed)
Patch Set: rebase Created 3 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/front_end/lib/src/fasta/scanner/string_scanner.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/string_scanner.dart b/pkg/front_end/lib/src/fasta/scanner/string_scanner.dart
index 8e45e86cb0dbe23481e5aeb06883bdfd6106314e..5d868884c984b6822d864dd9fa0421e332731293 100644
--- a/pkg/front_end/lib/src/fasta/scanner/string_scanner.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/string_scanner.dart
@@ -57,10 +57,10 @@ class StringScanner extends ArrayBasedScanner {
@override
analyzer.StringToken createSyntheticSubstringToken(
- TokenType type, int start, bool asciiOnly, String closingQuotes) {
+ TokenType type, int start, bool asciiOnly, String syntheticChars) {
String source = string.substring(start, scanOffset);
return new SyntheticStringToken(
- type, source + closingQuotes, tokenStart, source.length);
+ type, source + syntheticChars, tokenStart, source.length);
}
@override

Powered by Google App Engine
This is Rietveld 408576698