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

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

Issue 3010533002: flatten token hierarchy (Closed)
Patch Set: 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/error_token.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/error_token.dart b/pkg/front_end/lib/src/fasta/scanner/error_token.dart
index 358b40625bb84030ee7ca3832dcdefb69a21535d..730fc1f75ac7db3862dcd204e2e34429d80b8e0f 100644
--- a/pkg/front_end/lib/src/fasta/scanner/error_token.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/error_token.dart
@@ -4,7 +4,7 @@
library dart_scanner.error_token;
-import '../../scanner/token.dart' show BeginToken, TokenType, TokenWithComment;
+import '../../scanner/token.dart' show BeginToken, SimpleToken, TokenType;
import '../fasta_codes.dart'
show
@@ -65,7 +65,7 @@ ErrorToken buildUnexpectedCharacterToken(int character, int charOffset) {
///
/// It's considered an implementation error to access [lexeme] of an
/// [ErrorToken].
-abstract class ErrorToken extends TokenWithComment {
+abstract class ErrorToken extends SimpleToken {
ErrorToken(int offset) : super(TokenType.BAD_INPUT, offset, null);
/// This is a token that wraps around an error message. Return 1
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart ('k') | pkg/front_end/lib/src/fasta/scanner/token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698