Method: pylint.pyreverse.inspector.Linker.visit_functiondef
Calls: 8303, Exceptions: 0, Paths: 3Back
Path 1: 7863 calls (0.95)
FunctionDef (7863)
None (7863)
1def visit_functiondef(self, node: nodes.FunctionDef) -> None:
2 """Visit an astroid.Function node.
3
4 * set the locals_type mapping
5 * optionally tag the node with a unique id
6 """
7 if hasattr(node, "locals_type"):
8 return
9 node.locals_type = collections.defaultdict(list)
10 if self.tag:
11 node.uid = self.generate_id()
Path 2: 237 calls (0.03)
FunctionDef (237)
1def visit_functiondef(self, node: nodes.FunctionDef) -> None:
2 """Visit an astroid.Function node.
3
4 * set the locals_type mapping
5 * optionally tag the node with a unique id
6 """
7 if hasattr(node, "locals_type"):
8 return
9 node.locals_type = collections.defaultdict(list)
10 if self.tag:
11 node.uid = self.generate_id()
Path 3: 203 calls (0.02)
FunctionDef (203)
1def visit_functiondef(self, node: nodes.FunctionDef) -> None:
2 """Visit an astroid.Function node.
3
4 * set the locals_type mapping
5 * optionally tag the node with a unique id
6 """
7 if hasattr(node, "locals_type"):
8 return
9 node.locals_type = collections.defaultdict(list)
10 if self.tag:
11 node.uid = self.generate_id()