[Parse] Make PersistentParserState to hold ParserPosition

instead of PersistentParserState::ParserPos.
This commit is contained in:
Rintaro Ishizaki
2017-12-06 20:45:38 +09:00
parent 574d39bcb6
commit 60bfa893b9
5 changed files with 18 additions and 14 deletions

View File

@@ -270,7 +270,7 @@ bool Parser::parseTopLevel() {
// Next time start relexing from the beginning of the comment so that we can
// attach it to the token.
State->markParserPosition(Tok.getCommentRange().getStart(), PreviousLoc,
State->markParserPosition(getParserPosition(),
InPoundLineEnvironment);
// If we are done parsing the whole file, finalize the token receiver.