Method: pylint.pyreverse.inspector.Linker.visit_module
Calls: 100, Exceptions: 0, Paths: 3Back
Path 1: 73 calls (0.73)
Module (73)
None (73)
1def visit_module(self, node: nodes.Module) -> None:
2 """Visit an astroid.Module node.
3
4 * set the locals_type mapping
5 * set the depends mapping
6 * optionally tag the node with a unique id
7 """
8 if hasattr(node, "locals_type"):
9 return
10 node.locals_type = collections.defaultdict(list)
11 node.depends = []
12 if self.tag:
13 node.uid = self.generate_id()
Path 2: 25 calls (0.25)
Module (25)
1def visit_module(self, node: nodes.Module) -> None:
2 """Visit an astroid.Module node.
3
4 * set the locals_type mapping
5 * set the depends mapping
6 * optionally tag the node with a unique id
7 """
8 if hasattr(node, "locals_type"):
9 return
10 node.locals_type = collections.defaultdict(list)
11 node.depends = []
12 if self.tag:
13 node.uid = self.generate_id()
Path 3: 2 calls (0.02)
Module (2)
1def visit_module(self, node: nodes.Module) -> None:
2 """Visit an astroid.Module node.
3
4 * set the locals_type mapping
5 * set the depends mapping
6 * optionally tag the node with a unique id
7 """
8 if hasattr(node, "locals_type"):
9 return
10 node.locals_type = collections.defaultdict(list)
11 node.depends = []
12 if self.tag:
13 node.uid = self.generate_id()