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

Method clear_docs_from_script

editor/script/script_editor_plugin.cpp:3827–3835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3825}
3826
3827void ScriptEditor::clear_docs_from_script(const Ref<Script> &p_script) {
3828 ERR_FAIL_COND(p_script.is_null());
3829
3830 for (const DocData::ClassDoc &cd : p_script->get_documentation()) {
3831 if (EditorHelp::get_doc_data()->has_doc(cd.name)) {
3832 EditorHelp::get_doc_data()->remove_doc(cd.name);
3833 }
3834 }
3835}
3836
3837void ScriptEditor::update_docs_from_script(const Ref<Script> &p_script) {
3838 ERR_FAIL_COND(p_script.is_null());

Callers 1

willSaveWaitUntilMethod · 0.80

Calls 4

is_nullMethod · 0.45
get_documentationMethod · 0.45
has_docMethod · 0.45
remove_docMethod · 0.45

Tested by

no test coverage detected