Lines Matching refs:cur_token
253 self.cur_token = None
267 'Expected "module" (found {})'.format(self.cur_token.value),
268 self.cur_token.lineno)
277 while self.cur_token.kind == TokenKind.TypeId:
285 if self.cur_token.kind == TokenKind.LParen:
292 while self.cur_token.kind == TokenKind.Pipe:
306 while self.cur_token.kind == TokenKind.TypeId:
309 id = (self._advance() if self.cur_token.kind in self._id_kinds
312 if self.cur_token.kind == TokenKind.RParen:
314 elif self.cur_token.kind == TokenKind.Comma:
320 if self.cur_token.kind == TokenKind.LParen:
334 if self.cur_token.kind == TokenKind.Asterisk:
337 elif self.cur_token.kind == TokenKind.Question:
346 cur_val = None if self.cur_token is None else self.cur_token.value
348 self.cur_token = next(self._tokenizer)
350 self.cur_token = None
363 if (isinstance(kind, tuple) and self.cur_token.kind in kind or
364 self.cur_token.kind == kind
366 value = self.cur_token.value
371 'Unmatched {} (found {})'.format(kind, self.cur_token.kind),
372 self.cur_token.lineno)
375 return (self.cur_token.kind == TokenKind.TypeId and
376 self.cur_token.value == keyword)