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

Unified Diff: pkg/front_end/test/precedence_info_test.dart

Issue 2890523002: merge fasta.Token into 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/test/precedence_info_test.dart
diff --git a/pkg/front_end/test/precedence_info_test.dart b/pkg/front_end/test/precedence_info_test.dart
index 6b7fcdd2fc66a036dc6ea1df9961fb4af9bf078c..8eb0cac01396b59700cd32be65f875427f85d349 100644
--- a/pkg/front_end/test/precedence_info_test.dart
+++ b/pkg/front_end/test/precedence_info_test.dart
@@ -17,7 +17,7 @@ main() {
/// Assert that fasta PrecedenceInfo implements analyzer TokenType.
@reflectiveTest
class PrecedenceInfoTest {
- void assertInfo(check(String source, fasta.Token token),
+ void assertInfo(check(String source, Token token),
{bool includeLazyAssignmentOperators: true}) {
void assertLexeme(String source) {
if (source == null || source.isEmpty) return;
@@ -90,7 +90,7 @@ class PrecedenceInfoTest {
'~/=',
]);
- assertInfo((String source, fasta.Token token) {
+ assertInfo((String source, Token token) {
expect(token.isOperator, operatorLexemes.contains(source),
reason: source);
expect(token.type.isOperator, operatorLexemes.contains(source),
@@ -103,7 +103,7 @@ class PrecedenceInfoTest {
'-',
'+',
];
- assertInfo((String source, fasta.Token token) {
+ assertInfo((String source, Token token) {
expect(token.type.isAdditiveOperator, additiveLexemes.contains(source),
reason: source);
});
@@ -125,7 +125,7 @@ class PrecedenceInfoTest {
'*=',
'~/=',
];
- assertInfo((String source, fasta.Token token) {
+ assertInfo((String source, Token token) {
expect(
token.type.isAssignmentOperator, assignmentLexemes.contains(source),
reason: source);
@@ -142,7 +142,7 @@ class PrecedenceInfoTest {
'+',
'*',
];
- assertInfo((String source, fasta.Token token) {
+ assertInfo((String source, Token token) {
expect(
token.type.isAssociativeOperator, associativeLexemes.contains(source),
reason: source);
@@ -154,7 +154,7 @@ class PrecedenceInfoTest {
'!=',
'==',
];
- assertInfo((String source, fasta.Token token) {
+ assertInfo((String source, Token token) {
expect(token.type.isEqualityOperator, equalityLexemes.contains(source),
reason: source);
});
@@ -165,7 +165,7 @@ class PrecedenceInfoTest {
'--',
'++',
];
- assertInfo((String source, fasta.Token token) {
+ assertInfo((String source, Token token) {
expect(token.type.isIncrementOperator, incrementLexemes.contains(source),
reason: source);
});
@@ -178,7 +178,7 @@ class PrecedenceInfoTest {
'*',
'~/',
];
- assertInfo((String source, fasta.Token token) {
+ assertInfo((String source, Token token) {
expect(token.type.isMultiplicativeOperator,
multiplicativeLexemes.contains(source),
reason: source);
@@ -192,7 +192,7 @@ class PrecedenceInfoTest {
'<',
'<=',
];
- assertInfo((String source, fasta.Token token) {
+ assertInfo((String source, Token token) {
expect(
token.type.isRelationalOperator, relationalLexemes.contains(source),
reason: source);
@@ -204,7 +204,7 @@ class PrecedenceInfoTest {
'>>',
'<<',
];
- assertInfo((String source, fasta.Token token) {
+ assertInfo((String source, Token token) {
expect(token.type.isShiftOperator, shiftLexemes.contains(source),
reason: source);
});
@@ -219,7 +219,7 @@ class PrecedenceInfoTest {
'++',
'?.',
];
- assertInfo((String source, fasta.Token token) {
+ assertInfo((String source, Token token) {
expect(token.type.isUnaryPostfixOperator,
unaryPostfixLexemes.contains(source),
reason: source);
@@ -233,7 +233,7 @@ class PrecedenceInfoTest {
'++',
'~',
];
- assertInfo((String source, fasta.Token token) {
+ assertInfo((String source, Token token) {
expect(
token.type.isUnaryPrefixOperator, unaryPrefixLexemes.contains(source),
reason: source);
@@ -262,7 +262,7 @@ class PrecedenceInfoTest {
'~',
'~/',
];
- assertInfo((String source, fasta.Token token) {
+ assertInfo((String source, Token token) {
var userDefinable = userDefinableOperatorLexemes.contains(source);
expect(token.type.isUserDefinableOperator, userDefinable, reason: source);
expect(token.isUserDefinableOperator, userDefinable, reason: source);
« no previous file with comments | « pkg/front_end/test/fasta/parser/token_stream_rewriter_test.dart ('k') | pkg/front_end/test/scanner_fasta_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698