MCPcopy Create free account
hub / github.com/numpy/numpy / ParseCall

Class ParseCall

numpy/tests/test_warnings.py:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10import numpy
11
12class ParseCall(ast.NodeVisitor):
13 def __init__(self):
14 self.ls = []
15
16 def visit_Attribute(self, node):
17 ast.NodeVisitor.generic_visit(self, node)
18 self.ls.append(node.attr)
19
20 def visit_Name(self, node):
21 self.ls.append(node.id)
22
23
24class FindFuncs(ast.NodeVisitor):

Callers 1

visit_CallMethod · 0.85

Calls

no outgoing calls

Tested by 1

visit_CallMethod · 0.68