| 2283 | } |
| 2284 | |
| 2285 | Dictionary 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 | |
| 2302 | int CodeEdit::get_code_completion_selected_index() const { |
| 2303 | return (code_completion_active) ? code_completion_current_selected : -1; |
no test coverage detected