| 148 | } |
| 149 | |
| 150 | void ScriptTextEditor::apply_code() { |
| 151 | if (script.is_null()) { |
| 152 | return; |
| 153 | } |
| 154 | script->set_source_code(code_editor->get_text_editor()->get_text()); |
| 155 | script->update_exports(); |
| 156 | code_editor->get_text_editor()->get_syntax_highlighter()->update_cache(); |
| 157 | } |
| 158 | |
| 159 | Ref<Resource> ScriptTextEditor::get_edited_resource() const { |
| 160 | return script; |
nothing calls this directly
no test coverage detected