Autocompletion: mark datatype as constant for constant arrays
This commit is contained in:
parent
d3352813ea
commit
6df1a1e9b0
|
@ -1646,6 +1646,7 @@ static bool _guess_expression_type(GDScriptParser::CompletionContext &p_context,
|
||||||
if (full) {
|
if (full) {
|
||||||
// If not fully constant, setting this value is detrimental to the inference.
|
// If not fully constant, setting this value is detrimental to the inference.
|
||||||
r_type.value = a;
|
r_type.value = a;
|
||||||
|
r_type.type.is_constant = true;
|
||||||
}
|
}
|
||||||
r_type.type.type_source = GDScriptParser::DataType::ANNOTATED_EXPLICIT;
|
r_type.type.type_source = GDScriptParser::DataType::ANNOTATED_EXPLICIT;
|
||||||
r_type.type.kind = GDScriptParser::DataType::BUILTIN;
|
r_type.type.kind = GDScriptParser::DataType::BUILTIN;
|
||||||
|
|
Loading…
Reference in New Issue