(self, node, namespace="")
| 14 | self.visitChildren(node) |
| 15 | |
| 16 | def visitChildren(self, node, namespace=""): |
| 17 | for child in node.body: |
| 18 | if isinstance(child, ast.FunctionDef): |
| 19 | self.visitDef(child, namespace) |
| 20 | if isinstance(child, ast.ClassDef): |
| 21 | self.visitClassDef(child, namespace) |
| 22 | try: |
| 23 | if isinstance(child, ast.AsyncFunctionDef): |
| 24 | self.visitDef(child, namespace) |
| 25 | except Exception: |
| 26 | pass |
| 27 | |
| 28 | def visitDef(self, node, namespace=""): |
| 29 | symbol = "functions" if namespace == "" else "methods" |
no test coverage detected