MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / apply_code

Method apply_code

editor/script/script_text_editor.cpp:150–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void 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
159Ref<Resource> ScriptTextEditor::get_edited_resource() const {
160 return script;

Callers

nothing calls this directly

Calls 7

get_text_editorMethod · 0.80
is_nullMethod · 0.45
set_source_codeMethod · 0.45
get_textMethod · 0.45
update_exportsMethod · 0.45
update_cacheMethod · 0.45

Tested by

no test coverage detected