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

Function _find_built_in_variants

modules/gdscript/gdscript_editor.cpp:1035–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1033}
1034
1035static void _find_built_in_variants(HashMap<String, ScriptLanguage::CodeCompletionOption> &r_result, bool exclude_nil = false) {
1036 for (int i = 0; i < Variant::VARIANT_MAX; i++) {
1037 if (!exclude_nil && Variant::Type(i) == Variant::Type::NIL) {
1038 ScriptLanguage::CodeCompletionOption option("null", ScriptLanguage::CODE_COMPLETION_KIND_CLASS);
1039 r_result.insert(option.display, option);
1040 } else {
1041 ScriptLanguage::CodeCompletionOption option(Variant::get_type_name(Variant::Type(i)), ScriptLanguage::CODE_COMPLETION_KIND_CLASS);
1042 r_result.insert(option.display, option);
1043 }
1044 }
1045}
1046
1047static void _find_global_enums(HashMap<String, ScriptLanguage::CodeCompletionOption> &r_result) {
1048 List<StringName> global_enums;

Callers 2

_list_available_typesFunction · 0.85
_find_identifiersFunction · 0.85

Calls 2

TypeEnum · 0.70
insertMethod · 0.45

Tested by

no test coverage detected