Lines Matching refs:Token
18 SMLoc Token::getLoc() const { return SMLoc::getFromPointer(spelling.data()); } in getLoc()
20 SMLoc Token::getEndLoc() const { in getEndLoc()
24 SMRange Token::getLocRange() const { return SMRange(getLoc(), getEndLoc()); } in getLocRange()
28 Optional<unsigned> Token::getUnsignedIntegerValue() const { in getUnsignedIntegerValue()
39 Optional<uint64_t> Token::getUInt64IntegerValue(StringRef spelling) { in getUInt64IntegerValue()
50 Optional<double> Token::getFloatingPointValue() const { in getFloatingPointValue()
58 Optional<unsigned> Token::getIntTypeBitwidth() const { in getIntTypeBitwidth()
67 Optional<bool> Token::getIntTypeSignedness() const { in getIntTypeSignedness()
80 std::string Token::getStringValue() const { in getStringValue()
85 if (getKind() != Token::code_complete) { in getStringValue()
129 Optional<std::string> Token::getHexStringValue() const { in getHexStringValue()
147 std::string Token::getSymbolReference() const { in getSymbolReference()
148 assert(is(Token::at_identifier) && "expected valid @-identifier"); in getSymbolReference()
160 Optional<unsigned> Token::getHashIdentifierNumber() const { in getHashIdentifierNumber()
171 StringRef Token::getTokenSpelling(Kind kind) { in getTokenSpelling()
186 bool Token::isKeyword() const { in isKeyword()
197 bool Token::isCodeCompletionFor(Kind kind) const { in isCodeCompletionFor()