mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Reintroduce code completion
This commit is contained in:
parent
b6a2628c48
commit
aa09b4f85d
9 changed files with 2903 additions and 30 deletions
|
|
@ -165,10 +165,12 @@ GDScriptDataType GDScriptCompiler::_gdtype_from_datatype(const GDScriptParser::D
|
|||
}
|
||||
|
||||
} break;
|
||||
default: {
|
||||
case GDScriptParser::DataType::UNRESOLVED: {
|
||||
ERR_PRINT("Parser bug: converting unresolved type.");
|
||||
return GDScriptDataType();
|
||||
}
|
||||
default:
|
||||
break; // FIXME
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
@ -1325,10 +1327,9 @@ int GDScriptCompiler::_parse_expression(CodeGen &codegen, const GDScriptParser::
|
|||
return -1;
|
||||
}
|
||||
|
||||
// FIXME: Actually check type.
|
||||
GDScriptDataType assign_type; // = _gdtype_from_datatype(on->arguments[0]->get_datatype());
|
||||
GDScriptDataType assign_type = _gdtype_from_datatype(assignment->assignee->get_datatype());
|
||||
|
||||
if (assign_type.has_type && !assignment->get_datatype().is_set()) {
|
||||
if (assign_type.has_type && !assignment->assigned_value->get_datatype().is_variant()) {
|
||||
// Typed assignment
|
||||
switch (assign_type.kind) {
|
||||
case GDScriptDataType::BUILTIN: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue