| 1033 | } |
| 1034 | |
| 1035 | static 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 | |
| 1047 | static void _find_global_enums(HashMap<String, ScriptLanguage::CodeCompletionOption> &r_result) { |
| 1048 | List<StringName> global_enums; |
no test coverage detected