Index: pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart |
diff --git a/pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart b/pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart |
index 48933b1222debe45b4ec49b3fffedd0a87c2e492..2c4bdaac8fa40aa303822f8609f854247a787baa 100644 |
--- a/pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart |
+++ b/pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart |
@@ -107,9 +107,7 @@ abstract class ArrayBasedScanner extends AbstractScanner { |
unmatchedBeginGroup(groupingStack.head); |
groupingStack = groupingStack.tail; |
} |
- appendToken(new SymbolToken(EOF_INFO, tokenStart)); |
- // EOF points to itself so there's always infinite look-ahead. |
- tail.next = tail; |
+ appendToken(new SymbolToken.eof(tokenStart)); |
} |
/** |