Lines Matching refs:current

54         line number or last line number as well as the current name and
58 lineno = self.stream.current.lineno
108 if self.stream.current.type in ('variable_end', 'block_end', 'rparen'):
111 return self.stream.current.test_any(extra_end_rules)
123 token = self.stream.current
130 return getattr(self, 'parse_' + self.stream.current.value)()
153 current token is a colon and skips it if there is one. Then it checks
169 if self.stream.current.type == 'eof':
218 node = nodes.If(lineno=self.stream.current.lineno)
231 while self.stream.current.type != 'block_end':
232 lineno = self.stream.current.lineno
263 if self.stream.current.type == 'sub':
278 if self.stream.current.test_any('name:with', 'name:without') and \
289 if self.stream.current.test('name:ignore') and \
311 if self.stream.current.value in ('with', 'without') and \
321 if self.stream.current.type == 'name':
334 if parse_context() or self.stream.current.type != 'comma':
346 while self.stream.current.type != 'rparen':
360 if self.stream.current.type == 'lparen':
390 while self.stream.current.type != 'block_end':
436 lineno = self.stream.current.lineno
445 lineno = self.stream.current.lineno
449 lineno = self.stream.current.lineno
454 lineno = self.stream.current.lineno
458 lineno = self.stream.current.lineno
463 lineno = self.stream.current.lineno
467 if self.stream.current.test('name:not'):
473 lineno = self.stream.current.lineno
477 token_type = self.stream.current.type
483 elif (self.stream.current.test('name:not') and
489 lineno = self.stream.current.lineno
495 lineno = self.stream.current.lineno
497 while self.stream.current.type in ('add', 'sub'):
498 cls = _math_nodes[self.stream.current.type]
502 lineno = self.stream.current.lineno
506 lineno = self.stream.current.lineno
508 while self.stream.current.type == 'tilde':
516 lineno = self.stream.current.lineno
518 while self.stream.current.type in ('mul', 'div', 'floordiv', 'mod'):
519 cls = _math_nodes[self.stream.current.type]
523 lineno = self.stream.current.lineno
527 lineno = self.stream.current.lineno
529 while self.stream.current.type == 'pow':
533 lineno = self.stream.current.lineno
537 token_type = self.stream.current.type
538 lineno = self.stream.current.lineno
553 token = self.stream.current
567 while self.stream.current.type == 'string':
568 buf.append(self.stream.current.value)
606 lineno = self.stream.current.lineno
621 if self.stream.current.type == 'comma':
625 lineno = self.stream.current.lineno
637 describe_token(self.stream.current))
644 while self.stream.current.type != 'rbracket':
647 if self.stream.current.type == 'rbracket':
656 while self.stream.current.type != 'rbrace':
659 if self.stream.current.type == 'rbrace':
670 token_type = self.stream.current.type
683 token_type = self.stream.current.type
686 elif token_type == 'name' and self.stream.current.value == 'is':
699 attr_token = self.stream.current
710 while self.stream.current.type != 'rbracket':
723 lineno = self.stream.current.lineno
725 if self.stream.current.type == 'colon':
730 if self.stream.current.type != 'colon':
735 if self.stream.current.type == 'colon':
737 elif self.stream.current.type not in ('rbracket', 'comma'):
742 if self.stream.current.type == 'colon':
744 if self.stream.current.type not in ('rbracket', 'comma'):
765 while self.stream.current.type != 'rparen':
769 if self.stream.current.type == 'rparen':
771 if self.stream.current.type == 'mul':
775 elif self.stream.current.type == 'pow':
781 if self.stream.current.type == 'name' and \
783 key = self.stream.current.value
801 while self.stream.current.type == 'pipe' or start_inline:
806 while self.stream.current.type == 'dot':
809 if self.stream.current.type == 'lparen':
822 if self.stream.current.test('name:not'):
828 while self.stream.current.type == 'dot':
833 if self.stream.current.type == 'lparen':
835 elif (self.stream.current.type in ('name', 'string', 'integer',
838 self.stream.current.test_any('name:else', 'name:or',
840 if self.stream.current.test('name:is'):
867 token = self.stream.current
881 self.stream.current.test_any(*end_tokens):