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

Method _collect_function_dependencies

modules/gdscript/gdscript.cpp:1374–1387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1372}
1373
1374void GDScript::_collect_function_dependencies(GDScriptFunction *p_func, RBSet<GDScript *> &p_dependencies, const GDScript *p_except) {
1375 if (p_func == nullptr) {
1376 return;
1377 }
1378 for (GDScriptFunction *lambda : p_func->lambdas) {
1379 _collect_function_dependencies(lambda, p_dependencies, p_except);
1380 }
1381 for (const Variant &V : p_func->constants) {
1382 GDScript *scr = _get_gdscript_from_variant(V);
1383 if (scr != nullptr && scr != p_except) {
1384 scr->_collect_dependencies(p_dependencies, p_except);
1385 }
1386 }
1387}
1388
1389void GDScript::_collect_dependencies(RBSet<GDScript *> &p_dependencies, const GDScript *p_except) {
1390 if (p_dependencies.has(this)) {

Callers

nothing calls this directly

Calls 1

_collect_dependenciesMethod · 0.80

Tested by

no test coverage detected