Lines Matching refs:current
81 line number or last line number as well as the current name and
85 lineno = self.stream.current.lineno
152 if self.stream.current.type in ("variable_end", "block_end", "rparen"):
155 return self.stream.current.test_any(extra_end_rules) # type: ignore
167 token = self.stream.current
174 f = getattr(self, f"parse_{self.stream.current.value}")
200 current token is a colon and skips it if there is one. Then it checks
216 if self.stream.current.type == "eof":
263 node = nodes.If(lineno=self.stream.current.lineno)
275 while self.stream.current.type != "block_end":
303 if self.stream.current.type == "sub":
334 if self.stream.current.test_any(
346 if self.stream.current.test("name:ignore") and self.stream.look().test(
369 if self.stream.current.value in {
381 if self.stream.current.type == "name":
396 if parse_context() or self.stream.current.type != "comma":
408 while self.stream.current.type != "rparen":
422 if self.stream.current.type == "lparen":
451 while self.stream.current.type != "block_end":
525 lineno = self.stream.current.lineno
536 lineno = self.stream.current.lineno
540 lineno = self.stream.current.lineno
545 lineno = self.stream.current.lineno
549 lineno = self.stream.current.lineno
554 lineno = self.stream.current.lineno
558 if self.stream.current.test("name:not"):
564 lineno = self.stream.current.lineno
568 token_type = self.stream.current.type
574 elif self.stream.current.test("name:not") and self.stream.look().test(
581 lineno = self.stream.current.lineno
587 lineno = self.stream.current.lineno
589 while self.stream.current.type in ("add", "sub"):
590 cls = _math_nodes[self.stream.current.type]
594 lineno = self.stream.current.lineno
598 lineno = self.stream.current.lineno
600 while self.stream.current.type == "tilde":
608 lineno = self.stream.current.lineno
610 while self.stream.current.type in ("mul", "div", "floordiv", "mod"):
611 cls = _math_nodes[self.stream.current.type]
615 lineno = self.stream.current.lineno
619 lineno = self.stream.current.lineno
621 while self.stream.current.type == "pow":
625 lineno = self.stream.current.lineno
629 token_type = self.stream.current.type
630 lineno = self.stream.current.lineno
647 token = self.stream.current
661 while self.stream.current.type == "string":
662 buf.append(self.stream.current.value)
705 lineno = self.stream.current.lineno
724 if self.stream.current.type == "comma":
728 lineno = self.stream.current.lineno
741 f" got {describe_token(self.stream.current)!r}"
749 while self.stream.current.type != "rbracket":
752 if self.stream.current.type == "rbracket":
761 while self.stream.current.type != "rbrace":
764 if self.stream.current.type == "rbrace":
775 token_type = self.stream.current.type
788 token_type = self.stream.current.type
791 elif token_type == "name" and self.stream.current.value == "is":
808 attr_token = self.stream.current
820 while self.stream.current.type != "rbracket":
833 lineno = self.stream.current.lineno
836 if self.stream.current.type == "colon":
841 if self.stream.current.type != "colon":
846 if self.stream.current.type == "colon":
848 elif self.stream.current.type not in ("rbracket", "comma"):
853 if self.stream.current.type == "colon":
855 if self.stream.current.type not in ("rbracket", "comma"):
876 while self.stream.current.type != "rparen":
881 if self.stream.current.type == "rparen":
884 if self.stream.current.type == "mul":
888 elif self.stream.current.type == "pow":
894 self.stream.current.type == "name"
899 key = self.stream.current.value
916 token = self.stream.current
923 while self.stream.current.type == "pipe" or start_inline:
928 while self.stream.current.type == "dot":
931 if self.stream.current.type == "lparen":
945 if self.stream.current.test("name:not"):
951 while self.stream.current.type == "dot":
956 if self.stream.current.type == "lparen":
958 elif self.stream.current.type in {
966 } and not self.stream.current.test_any("name:else", "name:or", "name:and"):
967 if self.stream.current.test("name:is"):
999 token = self.stream.current
1011 if end_tokens is not None and self.stream.current.test_any(