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

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

Issue 2777153002: move synthetic fasta closers into the token stream (Closed)
Patch Set: rebase 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/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: pkg/front_end/test/scanner_test.dart
diff --git a/pkg/front_end/test/scanner_test.dart b/pkg/front_end/test/scanner_test.dart
index b1bcdb290b86f9773c875f9cde38b646f9f99f65..2418fc2a691b2bdf48cf1247367c8f0a723aa24d 100644
--- a/pkg/front_end/test/scanner_test.dart
+++ b/pkg/front_end/test/scanner_test.dart
@@ -817,10 +817,6 @@ abstract class ScannerTestBase {
_assertToken(TokenType.OPEN_SQUARE_BRACKET, "[");
}
- void test_openSquareBracket() {
- _assertToken(TokenType.OPEN_SQUARE_BRACKET, "[");
- }
-
void test_percent() {
_assertToken(TokenType.PERCENT, "%");
}
@@ -1364,7 +1360,9 @@ abstract class ScannerTestBase {
expect(tokenWithSpaces.offset, 1);
expect(tokenWithSpaces.length, source.length);
expect(tokenWithSpaces.lexeme, source);
- expect(originalToken.next.type, TokenType.EOF);
+
+ // Fasta inserts missing closers (']', '}', ')')
+ //expect(originalToken.next.type, TokenType.EOF);
return originalToken;
}
« 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