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

Method get_code_completion_option

scene/gui/code_edit.cpp:2285–2300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2283}
2284
2285Dictionary CodeEdit::get_code_completion_option(int p_index) const {
2286 if (!code_completion_active) {
2287 return Dictionary();
2288 }
2289 ERR_FAIL_INDEX_V(p_index, code_completion_options.size(), Dictionary());
2290
2291 Dictionary option;
2292 option["kind"] = code_completion_options[p_index].kind;
2293 option["display_text"] = code_completion_options[p_index].display;
2294 option["insert_text"] = code_completion_options[p_index].insert_text;
2295 option["font_color"] = code_completion_options[p_index].font_color;
2296 option["icon"] = code_completion_options[p_index].icon;
2297 option["location"] = code_completion_options[p_index].location;
2298 option["default_value"] = code_completion_options[p_index].default_value;
2299 return option;
2300}
2301
2302int CodeEdit::get_code_completion_selected_index() const {
2303 return (code_completion_active) ? code_completion_current_selected : -1;

Callers 1

test_code_edit.hFile · 0.80

Calls 2

sizeMethod · 0.65
DictionaryClass · 0.50

Tested by

no test coverage detected