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

Class ChainOfVisitors

Parser/asdl_c.py:2233–2242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2231"""
2232
2233class ChainOfVisitors:
2234 def __init__(self, *visitors, metadata = None):
2235 self.visitors = visitors
2236 self.metadata = metadata
2237
2238 def visit(self, object):
2239 for v in self.visitors:
2240 v.metadata = self.metadata
2241 v.visit(object)
2242 v.emit("", 0)
2243
2244
2245def generate_ast_state(module_state, f):

Callers 2

write_headerFunction · 0.85
write_sourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…