(instance: PythonScriptingInstance)
| 1887 | |
| 1888 | |
| 1889 | def _get_current_il_expr(instance: PythonScriptingInstance): |
| 1890 | if instance.interpreter.locals["current_il_function"] is not None \ |
| 1891 | and instance.interpreter.locals["current_il_expr_index"] is not None: |
| 1892 | return instance.interpreter.locals["current_il_function"].get_expr( |
| 1893 | instance.interpreter.locals["current_il_expr_index"] |
| 1894 | ) |
| 1895 | return None |
| 1896 | |
| 1897 | |
| 1898 | PythonScriptingProvider.register_magic_variable( |