()
| 675 | definition_depth = len(self.var_table.frames) |
| 676 | |
| 677 | def get_func(): |
| 678 | func_ast = from_doc(node) |
| 679 | module_ast = ast.Module(body=[func_ast], type_ignores=[]) |
| 680 | ast.fix_missing_locations(module_ast) |
| 681 | # set the filename to the source name, so that the error message can be reported correctly |
| 682 | code_obj = compile(module_ast, filename=self.diag.source.source_name, mode="exec") |
| 683 | namespace = self.var_table.get() |
| 684 | exec(code_obj, namespace) # pylint: disable=exec-used |
| 685 | func_name = func_ast.name |
| 686 | func = namespace[func_name] |
| 687 | return func, func_name |
| 688 | |
| 689 | func, func_name = get_func() |
| 690 | wrapper = inline(func, definition_depth=definition_depth, defining_var_table=self.var_table) |
no test coverage detected
searching dependent graphs…