mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 14:13:10 +00:00
Merge pull request #47294 from sebastian-heinz/patch-1
This commit is contained in:
commit
49d8925713
@ -410,6 +410,14 @@ Error Expression::_get_token(Token &r_token) {
|
||||
} else if (id == "self") {
|
||||
r_token.type = TK_SELF;
|
||||
} else {
|
||||
for (int i = 0; i < Variant::VARIANT_MAX; i++) {
|
||||
if (id == Variant::get_type_name(Variant::Type(i))) {
|
||||
r_token.type = TK_BASIC_TYPE;
|
||||
r_token.value = i;
|
||||
return OK;
|
||||
}
|
||||
}
|
||||
|
||||
if (Variant::has_utility_function(id)) {
|
||||
r_token.type = TK_BUILTIN_FUNC;
|
||||
r_token.value = id;
|
||||
|
Loading…
Reference in New Issue
Block a user