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

Unified Diff: pkg/front_end/lib/src/fasta/analyzer/token_utils.dart

Issue 2701723002: fix token type of first token in converted token stream (Closed)
Patch Set: merge 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 | « no previous file | pkg/front_end/test/scanner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/analyzer/token_utils.dart
diff --git a/pkg/front_end/lib/src/fasta/analyzer/token_utils.dart b/pkg/front_end/lib/src/fasta/analyzer/token_utils.dart
index 08a6ce70b1d5d08a568712bd5ffc75c8337b8fac..debd20b5b9f14a5f528f90f105b48c6ddd783a20 100644
--- a/pkg/front_end/lib/src/fasta/analyzer/token_utils.dart
+++ b/pkg/front_end/lib/src/fasta/analyzer/token_utils.dart
@@ -92,7 +92,7 @@ class ToAnalyzerTokenStreamConverter {
/// Converts a stream of Fasta tokens (starting with [token] and continuing to
/// EOF) to a stream of analyzer tokens.
analyzer.Token convertTokens(Token token) {
- _analyzerTokenHead = new analyzer.Token(null, 0);
+ _analyzerTokenHead = new analyzer.Token(TokenType.EOF, -1);
_analyzerTokenHead.previous = _analyzerTokenHead;
_analyzerTokenTail = _analyzerTokenHead;
_currentCommentHead = null;
« no previous file with comments | « no previous file | pkg/front_end/test/scanner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698