Method: pylint.extensions.no_self_use.NoSelfUseChecker.visit_name
Calls: 31, Exceptions: 0, Paths: 3Back
Path 1: 17 calls (0.55)
Name (17)
1def visit_name(self, node: nodes.Name) -> None:
2 """Check if the name handle an access to a class member
3 if so, register it.
4 """
5 if self._first_attrs and (
6 node.name == self._first_attrs[-1] or not self._first_attrs[-1]
7 ):
8 self._meth_could_be_func = False
Path 2: 9 calls (0.29)
Name (9)
1def visit_name(self, node: nodes.Name) -> None:
2 """Check if the name handle an access to a class member
3 if so, register it.
4 """
5 if self._first_attrs and (
6 node.name == self._first_attrs[-1] or not self._first_attrs[-1]
7 ):
8 self._meth_could_be_func = False
Path 3: 5 calls (0.16)
Name (5)
1def visit_name(self, node: nodes.Name) -> None:
2 """Check if the name handle an access to a class member
3 if so, register it.
4 """
5 if self._first_attrs and (
6 node.name == self._first_attrs[-1] or not self._first_attrs[-1]
7 ):
8 self._meth_could_be_func = False