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

Function _find_global_enums

modules/gdscript/gdscript_editor.cpp:1047–1054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045}
1046
1047static void _find_global_enums(HashMap<String, ScriptLanguage::CodeCompletionOption> &r_result) {
1048 List<StringName> global_enums;
1049 CoreConstants::get_global_enums(&global_enums);
1050 for (const StringName &enum_name : global_enums) {
1051 ScriptLanguage::CodeCompletionOption option(enum_name, ScriptLanguage::CODE_COMPLETION_KIND_ENUM, ScriptLanguage::LOCATION_OTHER);
1052 r_result.insert(option.display, option);
1053 }
1054}
1055
1056static void _list_available_types(bool p_inherit_only, GDScriptParser::CompletionContext &p_context, HashMap<String, ScriptLanguage::CodeCompletionOption> &r_result) {
1057 // Built-in Variant Types

Callers 2

_list_available_typesFunction · 0.85
_find_identifiersFunction · 0.85

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected