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

Method accept

Tools/cases_generator/parsing.py:189–195  ·  view source on GitHub ↗
(self, visitor: Visitor)

Source from the content-addressed store, hash-verified

187 stmt.print(out)
188
189 def accept(self, visitor: Visitor) -> None:
190 visitor(self)
191 for stmt in self.body:
192 stmt.accept(visitor)
193 if self.else_body is not None:
194 for stmt in self.else_body:
195 stmt.accept(visitor)
196
197 def tokens(self) -> Iterator[lx.Token]:
198 yield self.condition

Callers

nothing calls this directly

Calls 1

acceptMethod · 0.45

Tested by

no test coverage detected