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

Method visit_ClassDef

python/tvm/script/parser/core/parser.py:726–742  ·  view source on GitHub ↗

The general class definition visiting method. Parameters ---------- node : doc.ClassDef The doc AST class definition node. Returns ------- res : Any The visiting result.

(self, node: doc.ClassDef)

Source from the content-addressed store, hash-verified

724 return _dispatch(self, "tvm_declare_function")(self, node)
725
726 def visit_ClassDef(self, node: doc.ClassDef) -> Any: # pylint: disable=invalid-name
727 """The general class definition visiting method.
728
729 Parameters
730 ----------
731 node : doc.ClassDef
732 The doc AST class definition node.
733
734 Returns
735 -------
736 res : Any
737 The visiting result.
738 """
739 func = dispatch.get(token="ir", type_name="ClassDef", default=None)
740 if func is None:
741 self.report_error(node, "The parser does not understand the decorator")
742 _dispatch_wrapper(func)(self, node)
743
744 def visit_arguments(self, node: doc.arguments) -> Any:
745 """The general arguments visiting method.

Callers

nothing calls this directly

Calls 3

report_errorMethod · 0.95
_dispatch_wrapperFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected