| 560 | } |
| 561 | |
| 562 | void ScriptEditor::_clear_execution(Ref<RefCounted> p_script) { |
| 563 | Ref<Script> scr = Object::cast_to<Script>(*p_script); |
| 564 | if (scr.is_valid() && (scr->has_source_code() || scr->get_path().is_resource_file())) { |
| 565 | for (int i = 0; i < tab_container->get_tab_count(); i++) { |
| 566 | ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_tab_control(i)); |
| 567 | if (!se) { |
| 568 | continue; |
| 569 | } |
| 570 | |
| 571 | if ((scr.is_valid() && se->get_edited_resource() == p_script) || se->get_edited_resource()->get_path() == scr->get_path()) { |
| 572 | se->clear_executing_line(); |
| 573 | } |
| 574 | } |
| 575 | } |
| 576 | } |
| 577 | |
| 578 | void ScriptEditor::_set_breakpoint(Ref<RefCounted> p_script, int p_line, bool p_enabled) { |
| 579 | Ref<Script> scr = Object::cast_to<Script>(*p_script); |
nothing calls this directly
no test coverage detected