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

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

Issue 2701723002: fix token type of first token in converted token stream (Closed)
Patch Set: Created 3 years, 10 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/analyzer/token_utils.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 d853ee87f741c4768ba7904809aa74b39c9c91f2..d3f89ebb97244ada12712c46ceada4ece021239e 100644
--- a/pkg/front_end/test/scanner_test.dart
+++ b/pkg/front_end/test/scanner_test.dart
@@ -1190,6 +1190,7 @@ abstract class ScannerTestBase {
var openBrace = _scan('{[(') as BeginToken;
var openBracket = openBrace.next as BeginToken;
var openParen = openBracket.next as BeginToken;
+ expect(openBrace.previous.type, TokenType.EOF);
Paul Berry 2017/02/16 22:07:54 This seems like a weird place to test this functio
danrubel 2017/02/21 14:49:27 Good points. Found an already existing test_startA
expect(openParen.next.type, TokenType.EOF);
expect(openBrace.endToken, isNull);
expect(openBracket.endToken, isNull);
« no previous file with comments | « pkg/front_end/lib/src/fasta/analyzer/token_utils.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698