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

Unified Diff: pkg/compiler/lib/src/parser/element_listener.dart

Issue 2832403002: merge PrecedenceInfo into TokenType and update all refs (Closed)
Patch Set: rebase Created 3 years, 8 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
« no previous file with comments | « pkg/analyzer/test/generated/parser_fasta_test.dart ('k') | pkg/compiler/lib/src/parser/node_listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/parser/element_listener.dart
diff --git a/pkg/compiler/lib/src/parser/element_listener.dart b/pkg/compiler/lib/src/parser/element_listener.dart
index c2c83d845b54ce4210829240117de721958cd102..619dbf265adfe0ad33ee5f1375488f72aee9078b 100644
--- a/pkg/compiler/lib/src/parser/element_listener.dart
+++ b/pkg/compiler/lib/src/parser/element_listener.dart
@@ -29,14 +29,13 @@ import '../string_validator.dart' show StringValidator;
import 'package:front_end/src/fasta/scanner.dart'
show Keyword, BeginGroupToken, ErrorToken, KeywordToken, StringToken, Token;
import 'package:front_end/src/fasta/scanner.dart' as Tokens show EOF_TOKEN;
-import 'package:front_end/src/fasta/scanner/precedence.dart' as Precedence
- show IDENTIFIER_INFO;
import '../tree/tree.dart';
import '../util/util.dart' show Link, LinkBuilder;
import 'package:front_end/src/fasta/parser.dart'
show Listener, ParserError, optional;
import 'package:front_end/src/fasta/parser/identifier_context.dart'
show IdentifierContext;
+import 'package:front_end/src/scanner/token.dart' show TokenType;
import 'partial_elements.dart'
show
PartialClassElement,
@@ -773,8 +772,8 @@ class ElementListener extends Listener {
/// Finds the preceding token via the begin token of the last AST node pushed
/// on the [nodes] stack.
Token synthesizeIdentifier(Token token) {
- Token synthesizedToken = new StringToken.fromString(
- Precedence.IDENTIFIER_INFO, '?', token.charOffset);
+ Token synthesizedToken =
+ new StringToken.fromString(TokenType.IDENTIFIER, '?', token.charOffset);
synthesizedToken.next = token.next;
return synthesizedToken;
}
« no previous file with comments | « pkg/analyzer/test/generated/parser_fasta_test.dart ('k') | pkg/compiler/lib/src/parser/node_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698