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

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

Issue 2758113002: fasta.PrecedenceInfo implement analyzer.TokenType (Closed)
Patch Set: merge Created 3 years, 9 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/front_end/lib/src/fasta/scanner/precedence.dart ('k') | pkg/front_end/lib/src/scanner/token.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/scanner/token.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/token.dart b/pkg/front_end/lib/src/fasta/scanner/token.dart
index c162ee6443df24b65ff1b64857b6b437f2c19c38..31752b92d94102b4ee2b50fb5b10b6440c890898 100644
--- a/pkg/front_end/lib/src/fasta/scanner/token.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/token.dart
@@ -4,6 +4,8 @@
library fasta.scanner.token;
+import '../../scanner/token.dart' as analyzer;
+
import 'keyword.dart' show Keyword;
import 'precedence.dart' show BAD_INPUT_INFO, EOF_INFO, PrecedenceInfo;
@@ -126,9 +128,15 @@ abstract class Token {
bool get isEof => false;
+ bool get isBuiltInIdentifier => false;
+
bool get isOperator => info.isOperator;
- bool get isBuiltInIdentifier => false;
+ bool get isUserDefinableOperator => info.isUserDefinableOperator;
+
+ analyzer.TokenType get type => info;
+
+ int get offset => charOffset;
}
/**
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/precedence.dart ('k') | pkg/front_end/lib/src/scanner/token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698