mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Parse] Make PersistentParserState to hold ParserPosition
instead of PersistentParserState::ParserPos.
This commit is contained in:
@@ -460,9 +460,8 @@ Parser::Parser(std::unique_ptr<Lexer> Lex, SourceFile &SF,
|
||||
|
||||
auto ParserPos = State->takeParserPosition();
|
||||
if (ParserPos.isValid() &&
|
||||
SourceMgr.findBufferContainingLoc(ParserPos.Loc) == L->getBufferID()) {
|
||||
auto BeginParserPosition = getParserPosition(ParserPos);
|
||||
restoreParserPosition(BeginParserPosition);
|
||||
L->isStateForCurrentBuffer(ParserPos.LS)) {
|
||||
restoreParserPosition(ParserPos);
|
||||
InPoundLineEnvironment = State->InPoundLineEnvironment;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user