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

Unified Diff: tests/compiler/dart2js/scanner_test.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/front_end/test/scanner_replacement_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/scanner_test.dart
diff --git a/tests/compiler/dart2js/scanner_test.dart b/tests/compiler/dart2js/scanner_test.dart
index fcdd7bc00b5400bd967994845c3a89d530d41a59..8dd1aed7f92f942f19258e43f15b103eb6230993 100644
--- a/tests/compiler/dart2js/scanner_test.dart
+++ b/tests/compiler/dart2js/scanner_test.dart
@@ -5,7 +5,7 @@
import "package:expect/expect.dart";
import 'package:front_end/src/fasta/scanner.dart';
import 'package:front_end/src/fasta/scanner/characters.dart';
-import 'package:front_end/src/fasta/scanner/precedence.dart';
+import 'package:front_end/src/scanner/token.dart' show TokenType;
import 'dart:typed_data';
Token scan(List<int> bytes) {
@@ -184,7 +184,7 @@ main() {
// Regression test for issue 1761.
// "#!"
token = scan([0x23, 0x21]);
- Expect.equals(token.info, SCRIPT_INFO); // Treated as a comment.
+ Expect.equals(token.info, TokenType.SCRIPT_TAG); // Treated as a comment.
// Regression test for issue 1761.
// "#! Hello, World!"
@@ -206,5 +206,5 @@ main() {
0x64,
0x21
]);
- Expect.equals(token.info, SCRIPT_INFO); // Treated as a comment.
+ Expect.equals(token.info, TokenType.SCRIPT_TAG); // Treated as a comment.
}
« no previous file with comments | « pkg/front_end/test/scanner_replacement_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698