mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove the public Lexer::getBufferEnd() function which breaks encapsulation
of the source buffer Swift SVN r7084
This commit is contained in:
@@ -89,10 +89,7 @@ bool Parser::parseTranslationUnit(TranslationUnit *TU) {
|
||||
TU->ASTStage = TranslationUnit::Parsed;
|
||||
verify(TU);
|
||||
|
||||
bool Done = Tok.getLoc().Value.getPointer() == L->getBufferEnd();
|
||||
if (!Done) {
|
||||
State->markParserPosition(Tok.getLoc(), PreviousLoc);
|
||||
}
|
||||
State->markParserPosition(Tok.getLoc(), PreviousLoc);
|
||||
|
||||
return FoundTopLevelCodeToExecute;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user