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

Unified Diff: pkg/front_end/lib/src/fasta/parser/parser.dart

Issue 2872433005: more work aligning fasta.Token with analyzer.Token (Closed)
Patch Set: Created 3 years, 7 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/parser/parser.dart
diff --git a/pkg/front_end/lib/src/fasta/parser/parser.dart b/pkg/front_end/lib/src/fasta/parser/parser.dart
index d3508fc81777fe6db1158e3f698a8d0d48a7d30d..0b1e47a0141fb88f4e511504997dbbe29410c864 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -1051,7 +1051,7 @@ class Parser {
} else if (!optional("dynamic", token)) {
reportRecoverableErrorCodeWithToken(token, codeBuiltInIdentifierAsType);
}
- } else if (!inPlainSync && token.isPseudo) {
+ } else if (!inPlainSync && token.type.isPseudo) {
ahe 2017/05/15 09:23:12 Why this change?
danrubel 2017/05/15 13:03:18 There was no corresponding `isPseudo` accessor in
if (optional('await', token)) {
reportRecoverableErrorCode(token, codeAwaitAsIdentifier);
} else if (optional('yield', token)) {
« no previous file with comments | « pkg/analyzer/tool/summary/mini_ast.dart ('k') | pkg/front_end/lib/src/fasta/parser/token_stream_rewriter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698