Lines Matching refs:curToken
192 SMLoc loc = curToken.getLoc(); in parse()
196 while (curToken.getKind() != FormatToken::eof) { in parse()
213 if (curToken.is(FormatToken::literal)) in parseElement()
215 if (curToken.is(FormatToken::variable)) in parseElement()
217 if (curToken.isKeyword()) in parseElement()
219 if (curToken.is(FormatToken::l_paren)) in parseElement()
221 return emitError(curToken.getLoc(), in parseElement()
226 FormatToken tok = curToken; in parseLiteral()
257 FormatToken tok = curToken; in parseVariable()
267 FormatToken tok = curToken; in parseDirective()
277 SMLoc loc = curToken.getLoc(); in parseOptionalGroup()
292 if (curToken.is(FormatToken::caret)) { in parseOptionalGroup()
294 return emitError(curToken.getLoc(), "only one element can be marked as " in parseOptionalGroup()
300 } while (!curToken.is(FormatToken::r_paren)); in parseOptionalGroup()
304 if (curToken.is(FormatToken::colon)) { in parseOptionalGroup()
315 } while (!curToken.is(FormatToken::r_paren)); in parseOptionalGroup()
371 if (!curToken.is(FormatToken::comma)) in parseCustomDirective()