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

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

Issue 2718113003: Run dartfmt on pkg/front_end/lib. (Closed)
Patch Set: Rerun after merging. Created 3 years, 10 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 0beaad6c1d93a4537020871efd6964a29e61caaa..5faa29162a1e33301f5068ab0bc868bb1becc6a1 100644
--- a/pkg/front_end/lib/src/fasta/scanner/recover.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/recover.dart
@@ -4,19 +4,13 @@
library fasta.scanner.recover;
-import 'token.dart' show
- StringToken,
- Token;
+import 'token.dart' show StringToken, Token;
-import 'error_token.dart' show
- NonAsciiIdentifierToken,
- ErrorKind,
- ErrorToken;
+import 'error_token.dart' show NonAsciiIdentifierToken, ErrorKind, ErrorToken;
import 'precedence.dart' as Precedence;
-import 'precedence.dart' show
- PrecedenceInfo;
+import 'precedence.dart' show PrecedenceInfo;
/// Recover from errors in [tokens]. The original sources are provided as
/// [bytes]. [lineStarts] are the beginning character offsets of lines, and
@@ -39,11 +33,13 @@ Token defaultRecoveryStrategy(
/// Tokens with errors.
ErrorToken error;
+
/// Used for appending to [error].
ErrorToken errorTail;
/// Tokens without errors.
Token good;
+
/// Used for appending to [good].
Token goodTail;
@@ -114,12 +110,12 @@ Token defaultRecoveryStrategy(
}
String value = new String.fromCharCodes(codeUnits);
return synthesizeToken(charOffset, value, Precedence.IDENTIFIER_INFO)
- ..next = next;
+ ..next = next;
}
recoverExponent() {
return synthesizeToken(errorTail.charOffset, "NaN", Precedence.DOUBLE_INFO)
- ..next = errorTail.next;
+ ..next = errorTail.next;
}
recoverString() {
@@ -129,7 +125,7 @@ Token defaultRecoveryStrategy(
recoverHexDigit() {
return synthesizeToken(errorTail.charOffset, "-1", Precedence.INT_INFO)
- ..next = errorTail.next;
+ ..next = errorTail.next;
}
recoverStringInterpolation() {
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/precedence.dart ('k') | pkg/front_end/lib/src/fasta/scanner/string_canonicalizer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698