MCPcopy Create free account
hub / github.com/SalesforceAIResearch/perfcodegen / visit_FunctionDef

Method visit_FunctionDef

src/sanitize.py:38–42  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

36 self.generic_visit(node)
37
38 def visit_FunctionDef(self, node):
39 self.func_names.append("{}@{}".format(node.name, self.classname))
40 if self.classname == "global":
41 self.funcs.append(node.name)
42 self.generic_visit(node)
43
44 def run(self):
45 self.root = ast.parse(self.code)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected