Lines Matching refs:tokStart
1856 Token formToken(Token::Kind kind, const char *tokStart) { in formToken() argument
1857 return Token(kind, StringRef(tokStart, curPtr - tokStart)); in formToken()
1864 Token lexIdentifier(const char *tokStart);
1865 Token lexLiteral(const char *tokStart);
1866 Token lexVariable(const char *tokStart);
1926 const char *tokStart = curPtr; in lexToken() local
1934 return lexIdentifier(tokStart); in lexToken()
1937 return emitError(tokStart, "unexpected character"); in lexToken()
1940 return formToken(Token::eof, tokStart); in lexToken()
1944 return formToken(Token::caret, tokStart); in lexToken()
1946 return formToken(Token::comma, tokStart); in lexToken()
1948 return formToken(Token::equal, tokStart); in lexToken()
1950 return formToken(Token::less, tokStart); in lexToken()
1952 return formToken(Token::greater, tokStart); in lexToken()
1954 return formToken(Token::question, tokStart); in lexToken()
1956 return formToken(Token::l_paren, tokStart); in lexToken()
1958 return formToken(Token::r_paren, tokStart); in lexToken()
1968 return lexLiteral(tokStart); in lexToken()
1970 return lexVariable(tokStart); in lexToken()
1974 Token FormatLexer::lexLiteral(const char *tokStart) { in lexLiteral() argument
1980 return formToken(Token::literal, tokStart); in lexLiteral()
1985 Token FormatLexer::lexVariable(const char *tokStart) { in lexVariable() argument
1992 return formToken(Token::variable, tokStart); in lexVariable()
1995 Token FormatLexer::lexIdentifier(const char *tokStart) { in lexIdentifier() argument
2001 StringRef str(tokStart, curPtr - tokStart); in lexIdentifier()