MCPcopy Index your code
hub / github.com/apache/tvm / generic_visit

Method generic_visit

python/tvm/script/parser/core/doc.py:244–250  ·  view source on GitHub ↗
(self, node: doc.AST)

Source from the content-addressed store, hash-verified

242 )(node)
243
244 def generic_visit(self, node: doc.AST) -> None:
245 for field in node.__class__._FIELDS: # pylint: disable=protected-access
246 value = getattr(node, field, None)
247 if value is None:
248 pass
249 elif isinstance(value, doc.AST | list | tuple):
250 self.visit(value)
251
252
253class NodeTransformer:

Callers 1

_dispatchFunction · 0.45

Calls 1

visitMethod · 0.95

Tested by

no test coverage detected