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

Method __init__

src/sanitize.py:14–23  ·  view source on GitHub ↗
(self, code)

Source from the content-addressed store, hash-verified

12
13class CodeVisitor(ast.NodeVisitor):
14 def __init__(self, code):
15 self.funcs = []
16 self.func_names = []
17 self.classes = []
18 self.code = code
19 self.classname = "global"
20 self.has_class = False
21 self.has_input = False
22 self.only_func = False
23 self.all_func_in_class = False
24
25 def visit_ClassDef(self, node):
26 self.classname = node.name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected