Lines Matching refs:EndPos
267 const char *EndPos = CurLexer->BufferEnd; in getCurLexerEndPos() local
268 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
269 (EndPos[-1] == '\n' || EndPos[-1] == '\r')) { in getCurLexerEndPos()
270 --EndPos; in getCurLexerEndPos()
273 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
274 (EndPos[-1] == '\n' || EndPos[-1] == '\r') && in getCurLexerEndPos()
275 EndPos[-1] != EndPos[0]) in getCurLexerEndPos()
276 --EndPos; in getCurLexerEndPos()
279 return EndPos; in getCurLexerEndPos()
356 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
357 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
358 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
486 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
488 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
489 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
539 const char *EndPos = getCurLexerEndPos(); in HandleEndOfFile() local
541 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
544 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_repl_input_end); in HandleEndOfFile()
548 CurLexer->FormTokenWithChars(Result, EndPos, tok::eof); in HandleEndOfFile()