Lines Matching refs:Lex
36 Lex.reset(new Lexer(ID, SourceMgr.getBufferOrFake(ID), SourceMgr,
38 Lex->SetKeepWhitespaceMode(true);
522 const char *Offset = Lex->getBufferLocation(); in tryParseJSRegexLiteral()
524 StringRef Buffer = Lex->getBuffer(); in tryParseJSRegexLiteral()
555 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset))); in tryParseJSRegexLiteral()
570 Lex->getBufferLocation() - CSharpStringLiteral->TokenText.size(); in handleCSharpVerbatimAndInterpolatedStrings()
579 for (; Offset != Lex->getBuffer().end(); ++Offset) { in handleCSharpVerbatimAndInterpolatedStrings()
582 if (Offset + 1 < Lex->getBuffer().end() && Offset[1] == '"') in handleCSharpVerbatimAndInterpolatedStrings()
591 if (Offset == Lex->getBuffer().end()) in handleCSharpVerbatimAndInterpolatedStrings()
614 SourceLocation loc = Offset < Lex->getBuffer().end() in handleCSharpVerbatimAndInterpolatedStrings()
615 ? Lex->getSourceLocation(Offset + 1) in handleCSharpVerbatimAndInterpolatedStrings()
642 const char *Offset = Lex->getBufferLocation(); in handleTemplateStrings()
644 for (; Offset != Lex->getBuffer().end(); ++Offset) { in handleTemplateStrings()
651 } else if (Offset + 1 < Lex->getBuffer().end() && Offset[0] == '$' && in handleTemplateStrings()
681 SourceLocation loc = Offset < Lex->getBuffer().end() in handleTemplateStrings()
682 ? Lex->getSourceLocation(Offset + 1) in handleTemplateStrings()
693 Lex->getBufferLocation() - HashToken->TokenText.size(); // at "#" in tryParsePythonComment()
694 size_t From = CommentBegin - Lex->getBuffer().begin(); in tryParsePythonComment()
695 size_t To = Lex->getBuffer().find_first_of('\n', From); in tryParsePythonComment()
697 To = Lex->getBuffer().size(); in tryParsePythonComment()
701 HashToken->TokenText = Lex->getBuffer().substr(From, Len); in tryParsePythonComment()
702 SourceLocation Loc = To < Lex->getBuffer().size() in tryParsePythonComment()
703 ? Lex->getSourceLocation(CommentBegin + Len) in tryParsePythonComment()
915 const char *Offset = Lex->getBufferLocation(); in getNextToken()
918 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset))); in getNextToken()
1039 Lex->LexFromRawLexer(Tok.Tok); in readRawToken()
1076 Lex.reset(new Lexer(SourceMgr.getLocForStartOfFile(ID), in resetLexer()
1079 Lex->SetKeepWhitespaceMode(true); in resetLexer()