Lines Matching defs:tok
243 FormatToken tok = curToken;
244 SMLoc loc = tok.getLoc();
253 StringRef value = tok.getSpelling();
257 return emitError(tok.getLoc(), "expected literal, but got '" + value + "'");
274 FormatToken tok = curToken;
275 SMLoc loc = tok.getLoc();
284 StringRef contents = tok.getSpelling().drop_front().drop_back();
296 FormatToken tok = curToken;
297 SMLoc loc = tok.getLoc();
301 StringRef name = tok.getSpelling().drop_front();
306 FormatToken tok = curToken;
307 SMLoc loc = tok.getLoc();
310 if (tok.is(FormatToken::kw_custom))
312 if (tok.is(FormatToken::kw_ref))
314 if (tok.is(FormatToken::kw_qualified))
316 return parseDirectiveImpl(loc, tok.getKind(), ctx);