Lines Matching defs:token
520 /// Storage used when parsing elements, this is a pair of <is_negated, token>.
616 const Token &token = signAndToken.second;
617 auto tokenLoc = token.getLoc();
625 if (token.is(Token::floatliteral)) {
630 assert(token.isAny(Token::integer, Token::kw_true, Token::kw_false) &&
631 "unexpected token type");
632 if (token.isAny(Token::kw_true, Token::kw_false)) {
637 APInt apInt(1, token.is(Token::kw_true), /*isSigned=*/false);
644 buildAttributeAPInt(eltTy, isNegative, token.getSpelling());
659 const Token &token = signAndToken.second;
661 if (failed(p.parseFloatFromLiteral(result, token, isNegative,
882 Token token = p.getToken();
885 p.parseFloatFromLiteral(fromIntLit, token, isNegative,
1101 // Callback for error emissing at the keyword token location.
1110 // Parses either an integer token or a question mark token. Reports an error
1111 // and returns std::nullopt if the current token is neither. The integer token
1190 Token token = getToken();
1193 std::optional<uint64_t> value = token.getUInt64IntegerValue();