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

Method tokens

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

Source from the content-addressed store, hash-verified

222 stmt.accept(visitor)
223
224 def tokens(self) -> Iterator[lx.Token]:
225 yield self.open
226 for stmt in self.body:
227 yield from stmt.tokens()
228 yield self.close
229
230
231@dataclass

Callers

nothing calls this directly

Calls 1

tokensMethod · 0.45

Tested by

no test coverage detected