You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
When analyzing GdScript sources, consider Enums as Dictionaries. Fixes #45558
This commit is contained in:
@@ -2351,7 +2351,10 @@ void GDScriptAnalyzer::reduce_identifier_from_base(GDScriptParser::IdentifierNod
|
||||
result.enum_type = name;
|
||||
p_identifier->set_datatype(result);
|
||||
} else {
|
||||
push_error(vformat(R"(Cannot find value "%s" in "%s".)", name, base.to_string()), p_identifier);
|
||||
// Consider as a Dictionary
|
||||
GDScriptParser::DataType dummy;
|
||||
dummy.kind = GDScriptParser::DataType::VARIANT;
|
||||
p_identifier->set_datatype(dummy);
|
||||
}
|
||||
} else {
|
||||
push_error(R"(Cannot get property from enum value.)", p_identifier);
|
||||
|
||||
Reference in New Issue
Block a user