Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct and simplify parser's tracking of the last source position read.
1. Storing a token is overkill. We only ever need its position. 2. resetScanner() should reset last source position. It doesn't matter for the current use-case, but it will for an upcoming change to handle async arrow functions. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=125061835
- Loading branch information
Showing
1 changed file
with
18 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters