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

Method set_code_completion_prefixes

scene/gui/code_edit.cpp:2162–2170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2160}
2161
2162void CodeEdit::set_code_completion_prefixes(const TypedArray<String> &p_prefixes) {
2163 code_completion_prefixes.clear();
2164 for (int i = 0; i < p_prefixes.size(); i++) {
2165 const String prefix = p_prefixes[i];
2166
2167 ERR_CONTINUE_MSG(prefix.is_empty(), "Code completion prefix cannot be empty.");
2168 code_completion_prefixes.insert(prefix[0]);
2169 }
2170}
2171
2172TypedArray<String> CodeEdit::get_code_completion_prefixes() const {
2173 TypedArray<String> prefixes;

Callers 2

CodeTextEditorMethod · 0.80
test_code_edit.hFile · 0.80

Calls 4

sizeMethod · 0.65
clearMethod · 0.45
is_emptyMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected