(self, node)
| 208 | anno.setanno(node, anno.Basic.ORIGIN, origin) |
| 209 | |
| 210 | def visit(self, node): |
| 211 | entered_function = False |
| 212 | if isinstance(node, gast.FunctionDef): |
| 213 | entered_function = True |
| 214 | self._function_stack.append(_Function(node.name)) |
| 215 | |
| 216 | if hasattr(node, 'lineno'): |
| 217 | self._attach_origin_info(node) |
| 218 | self.generic_visit(node) |
| 219 | |
| 220 | if entered_function: |
| 221 | self._function_stack.pop() |
| 222 | |
| 223 | |
| 224 | def resolve(node, source, context_filepath, context_lineno, context_col_offset): |
no test coverage detected