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

Method _add_doc

modules/gdscript/gdscript.cpp:486–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486void GDScript::_add_doc(const DocData::ClassDoc &p_doc) {
487 doc_class_name = p_doc.name;
488 if (_owner) { // Only the top-level class stores doc info.
489 _owner->_add_doc(p_doc);
490 } else { // Remove old docs, add new.
491 for (int i = 0; i < docs.size(); i++) {
492 if (docs[i].name == p_doc.name) {
493 docs.remove_at(i);
494 break;
495 }
496 }
497 docs.append(p_doc);
498 }
499}
500
501void GDScript::_clear_doc() {
502 doc_class_name = StringName();

Callers 1

_generate_docsMethod · 0.80

Calls 3

sizeMethod · 0.65
remove_atMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected