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

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

Issue 2965393002: Use FastaMessage instead of String. Part 1. (Closed)
Patch Set: Add type variable to Code. Created 3 years, 5 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/recover.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/recover.dart b/pkg/front_end/lib/src/fasta/scanner/recover.dart
index e393e1387a081ddf4ec7ab2310ce04befdb062cd..3f272928ec963e7ec791758da9764c4f02228000 100644
--- a/pkg/front_end/lib/src/fasta/scanner/recover.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/recover.dart
@@ -8,7 +8,7 @@ import '../../scanner/token.dart' show TokenType;
import '../fasta_codes.dart'
show
- FastaCode,
+ Code,
codeAsciiControlCharacter,
codeEncoding,
codeExpectedHexDigit,
@@ -172,7 +172,7 @@ Token defaultRecoveryStrategy(
next = next.next;
} while (next is ErrorToken && first.errorCode == next.errorCode);
- FastaCode code = first.errorCode;
+ Code code = first.errorCode;
if (code == codeEncoding ||
code == codeNonAsciiWhitespace ||
code == codeAsciiControlCharacter) {
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/error_token.dart ('k') | pkg/front_end/lib/src/fasta/source/diet_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698