1
0
Fork 0
godot/modules/gdscript/tests/scripts
George Marques 81c7cae567
GDScript: Don't get invalid dictionary key during completion
We try to get the value out of a dictionary in order to establish its
type for completion purposes. However, if the dictionary or the key
is not a constant, we cannot safely get the actual value, so we skip
this and just try to infer from static typing.

Getting the value directly with `Variant::get()` generate errors if the
base is a Dictionary and the key is of an invalid type. So before trying
to get it we use the Dictionary validator to make sure it we can safely
try to get the key.
2025-07-24 15:02:40 -03:00
..
analyzer GDScript: Replace `abstract` keyword with `@abstract` annotation 2025-06-23 12:24:45 -07:00
completion Merge pull request #107872 from Thought-Weaver/users/loganapple/editor-caret-fix 2025-07-10 11:39:30 -05:00
lsp Fix lookup symbol for super() 2025-07-08 16:21:39 +03:00
parser GDScript: Replace `abstract` keyword with `@abstract` annotation 2025-06-23 12:24:45 -07:00
runtime GDScript: Don't get invalid dictionary key during completion 2025-07-24 15:02:40 -03:00
.editorconfig GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
.gitignore
project.godot GDScript: Update `get_stack()`, `print_stack()`, and `print_debug()` 2025-04-26 21:10:41 +03:00
utils.notest.gd Merge pull request #107717 from aaronfranke/abstract-annotation 2025-06-27 17:12:56 +02:00