MCPcopy Index your code
hub / github.com/python/cpython / tokens

Method tokens

Tools/cases_generator/parsing.py:197–203  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

195 stmt.accept(visitor)
196
197 def tokens(self) -> Iterator[lx.Token]:
198 yield self.condition
199 for stmt in self.body:
200 yield from stmt.tokens()
201 if self.else_body is not None:
202 for stmt in self.else_body:
203 yield from stmt.tokens()
204
205
206@dataclass

Callers

nothing calls this directly

Calls 1

tokensMethod · 0.45

Tested by

no test coverage detected