(instance: PythonScriptingInstance)
| 1372 | |
| 1373 | |
| 1374 | def _get_current_comment(instance: PythonScriptingInstance): |
| 1375 | if instance.interpreter.active_view is None: |
| 1376 | return None |
| 1377 | |
| 1378 | if instance.interpreter.active_func is None: |
| 1379 | return instance.interpreter.active_view.get_comment_at(instance.interpreter.active_addr) |
| 1380 | elif instance.interpreter.active_func.get_comment_at(instance.interpreter.active_addr) != '': |
| 1381 | return instance.interpreter.active_func.get_comment_at(instance.interpreter.active_addr) |
| 1382 | else: |
| 1383 | return instance.interpreter.active_view.get_comment_at(instance.interpreter.active_addr) |
| 1384 | |
| 1385 | |
| 1386 | def _set_current_comment(instance: PythonScriptingInstance, old_value: Any, new_value: Any): |
nothing calls this directly
no test coverage detected