(self, node)
| 1033 | visit_AsyncFunctionDef = visit_FunctionDef |
| 1034 | |
| 1035 | def visit_ClassDef(self, node): |
| 1036 | self.stack.append(node.name) |
| 1037 | if self.qualname == '.'.join(self.stack): |
| 1038 | # Return the decorator for the class if present |
| 1039 | if node.decorator_list: |
| 1040 | line_number = node.decorator_list[0].lineno |
| 1041 | else: |
| 1042 | line_number = node.lineno |
| 1043 | |
| 1044 | # decrement by one since lines starts with indexing by zero |
| 1045 | line_number -= 1 |
| 1046 | raise ClassFoundException(line_number) |
| 1047 | self.generic_visit(node) |
| 1048 | self.stack.pop() |
| 1049 | |
| 1050 | |
| 1051 | def findsource(object): |
nothing calls this directly
no test coverage detected