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

Unified Diff: pkg/analyzer/lib/src/generated/parser.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/analyzer/lib/src/generated/parser.dart
diff --git a/pkg/analyzer/lib/src/generated/parser.dart b/pkg/analyzer/lib/src/generated/parser.dart
index cccaba0e9facacbc309d314fcc2146a6adc8fd1f..98ddf405c5e8763adefc76d5eed9120a062c01f8 100644
--- a/pkg/analyzer/lib/src/generated/parser.dart
+++ b/pkg/analyzer/lib/src/generated/parser.dart
@@ -5964,9 +5964,9 @@ class Parser {
}
return new Token(type, token.offset);
} else if (isBegin) {
- return new BeginTokenWithComment(type, token.offset, comments);
+ return new BeginToken(type, token.offset, comments);
}
- return new TokenWithComment(type, token.offset, comments);
+ return new Token(type, token.offset, comments);
}
/**
« no previous file with comments | « pkg/analyzer/lib/src/dart/ast/token.dart ('k') | pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698