| Index: pkg/front_end/test/scanner_roundtrip_test.dart
|
| diff --git a/pkg/front_end/test/scanner_roundtrip_test.dart b/pkg/front_end/test/scanner_roundtrip_test.dart
|
| index cdf61ecbe1324b82abaf6d9472c1c2933d3cd268..8867917810935871fb29e195d7ea7f39119ce6d3 100644
|
| --- a/pkg/front_end/test/scanner_roundtrip_test.dart
|
| +++ b/pkg/front_end/test/scanner_roundtrip_test.dart
|
| @@ -263,4 +263,14 @@ class ScannerTest_RoundTrip extends ScannerTest {
|
| assertIsOperator(tt.lexeme, operatorTokenTypes.contains(tt));
|
| }
|
| }
|
| +
|
| + void test_precedence() {
|
| + for (TokenType tt in allTokenTypes) {
|
| + for (PrecedenceInfo info in PrecedenceInfo.all) {
|
| + if (info.value == tt.lexeme || info.value == tt.name.toLowerCase()) {
|
| + expect(tt.precedence, info.precedence, reason: tt.name);
|
| + }
|
| + }
|
| + }
|
| + }
|
| }
|
|
|