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

Method get_all_dependencies

modules/gdscript/gdscript.cpp:1274–1296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1272}
1273
1274HashMap<GDScript *, RBSet<GDScript *>> GDScript::get_all_dependencies() {
1275 HashMap<GDScript *, RBSet<GDScript *>> all_dependencies;
1276
1277 List<GDScript *> scripts;
1278 {
1279 MutexLock lock(GDScriptLanguage::singleton->mutex);
1280
1281 SelfList<GDScript> *elem = GDScriptLanguage::singleton->script_list.first();
1282 while (elem) {
1283 scripts.push_back(elem->self());
1284 elem = elem->next();
1285 }
1286 }
1287
1288 for (GDScript *scr : scripts) {
1289 if (scr == nullptr || scr->destructing) {
1290 continue;
1291 }
1292 all_dependencies.insert(scr, scr->get_dependencies());
1293 }
1294
1295 return all_dependencies;
1296}
1297
1298RBSet<GDScript *> GDScript::get_must_clear_dependencies() {
1299 RBSet<GDScript *> dependencies = get_dependencies();

Callers

nothing calls this directly

Calls 6

firstMethod · 0.80
selfMethod · 0.80
push_backMethod · 0.45
nextMethod · 0.45
insertMethod · 0.45
get_dependenciesMethod · 0.45

Tested by

no test coverage detected