Lines Matching refs:current
50 lineno = self.stream.current.lineno
100 if self.stream.current.type in ('variable_end', 'block_end', 'rparen'):
103 return self.stream.current.test_any(extra_end_rules)
115 token = self.stream.current
122 return getattr(self, 'parse_' + self.stream.current.value)()
161 if self.stream.current.type == 'eof':
204 new_node = nodes.If(lineno=self.stream.current.lineno)
224 if self.stream.current.type == 'sub':
239 if self.stream.current.test_any('name:with', 'name:without') and \
250 if self.stream.current.test('name:ignore') and \
272 if self.stream.current.value in ('with', 'without') and \
282 if self.stream.current.type == 'name':
295 if parse_context() or self.stream.current.type != 'comma':
308 while self.stream.current.type != 'rparen':
320 if self.stream.current.type == 'lparen':
350 while self.stream.current.type != 'block_end':
390 lineno = self.stream.current.lineno
399 lineno = self.stream.current.lineno
403 lineno = self.stream.current.lineno
408 lineno = self.stream.current.lineno
412 lineno = self.stream.current.lineno
417 lineno = self.stream.current.lineno
421 if self.stream.current.test('name:not'):
427 lineno = self.stream.current.lineno
431 token_type = self.stream.current.type
437 elif self.stream.current.test('name:not') and \
443 lineno = self.stream.current.lineno
449 lineno = self.stream.current.lineno
451 while self.stream.current.type == 'add':
455 lineno = self.stream.current.lineno
459 lineno = self.stream.current.lineno
461 while self.stream.current.type == 'sub':
465 lineno = self.stream.current.lineno
469 lineno = self.stream.current.lineno
471 while self.stream.current.type == 'tilde':
479 lineno = self.stream.current.lineno
481 while self.stream.current.type == 'mul':
485 lineno = self.stream.current.lineno
489 lineno = self.stream.current.lineno
491 while self.stream.current.type == 'div':
495 lineno = self.stream.current.lineno
499 lineno = self.stream.current.lineno
501 while self.stream.current.type == 'floordiv':
505 lineno = self.stream.current.lineno
509 lineno = self.stream.current.lineno
511 while self.stream.current.type == 'mod':
515 lineno = self.stream.current.lineno
519 lineno = self.stream.current.lineno
521 while self.stream.current.type == 'pow':
525 lineno = self.stream.current.lineno
529 token_type = self.stream.current.type
530 lineno = self.stream.current.lineno
545 token = self.stream.current
559 while self.stream.current.type == 'string':
560 buf.append(self.stream.current.value)
598 lineno = self.stream.current.lineno
613 if self.stream.current.type == 'comma':
617 lineno = self.stream.current.lineno
629 describe_token(self.stream.current))
636 while self.stream.current.type != 'rbracket':
639 if self.stream.current.type == 'rbracket':
648 while self.stream.current.type != 'rbrace':
651 if self.stream.current.type == 'rbrace':
662 token_type = self.stream.current.type
675 token_type = self.stream.current.type
678 elif token_type == 'name' and self.stream.current.value == 'is':
691 attr_token = self.stream.current
702 while self.stream.current.type != 'rbracket':
715 lineno = self.stream.current.lineno
717 if self.stream.current.type == 'colon':
722 if self.stream.current.type != 'colon':
727 if self.stream.current.type == 'colon':
729 elif self.stream.current.type not in ('rbracket', 'comma'):
734 if self.stream.current.type == 'colon':
736 if self.stream.current.type not in ('rbracket', 'comma'):
757 while self.stream.current.type != 'rparen':
761 if self.stream.current.type == 'rparen':
763 if self.stream.current.type == 'mul':
767 elif self.stream.current.type == 'pow':
773 if self.stream.current.type == 'name' and \
775 key = self.stream.current.value
793 while self.stream.current.type == 'pipe' or start_inline:
798 while self.stream.current.type == 'dot':
801 if self.stream.current.type == 'lparen':
814 if self.stream.current.test('name:not'):
820 while self.stream.current.type == 'dot':
825 if self.stream.current.type == 'lparen':
827 elif self.stream.current.type in ('name', 'string', 'integer',
830 self.stream.current.test_any('name:else', 'name:or',
832 if self.stream.current.test('name:is'):
859 token = self.stream.current
873 self.stream.current.test_any(*end_tokens):