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

Method visit_FunctionDef

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

Source from the content-addressed store, hash-verified

62 pass
63
64 def visit_FunctionDef(self, node):
65 if len(node.body) == 0:
66 node.body.append(ast.Pass())
67 return node
68 else:
69 self.generic_visit(node)
70 return node
71
72 def visit_AsyncFunctionDef(self, node):
73 if len(node.body) == 0:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected