Age | Commit message (Collapse) | Author |
|
Improved go-to definition (Ctrl + Click)
|
|
Co-Authored-By: Bojidar Marinov <bojidar.marinov.bg@gmail.com>
|
|
|
|
Calling _reduce_node_type from GDScriptParser::_parse_block for assert
was using a current class with a scope that didn't include all
functions. Now calling in GDScriptParser::_check_block_types uses the
right class type. We also now check the assert node message. The assert
line was added to the set_errors associated with assert, since before
the error would be reported on the next line
|
|
Fix: export var type reduce() implemented
|
|
|
|
Mark assert lines as safe in gdscript
|
|
autocomplete for load() function implemented
|
|
GDScript: Fix type inference for const reference to global class
|
|
Fix unassigned variable warnings for match bindings
|
|
GDScript class name existance check enhanced
|
|
Line marked unsafe when base known and index unkonwn
|
|
Subgroups were added in #37678 but not properly handled everywhere
where PROPERTY_USAGE_GROUP is.
|
|
|
|
|
|
`:=` fails on some nodes fix: #37357
|
|
Fixes #34697
|
|
Fixes #37529.
|
|
|
|
|
|
|
|
Now calling _reduce_node_type with debugging enabled to determine
if assert line is safe. Part of doing this required the assert line
to be stored away. Now the AssertNode line is being correctly set.
Newlines are now marked safe always
|
|
|
|
For us, it practically only changes the fact that `A<A<int>>` is now
used instead of the C++03 compatible `A<A<int> >`.
Note: clang-format 10+ changed the `Standard` arguments to fully
specified `c++11`, `c++14`, etc. versions, but we can't use `c++17`
now if we want to preserve compatibility with clang-format 8 and 9.
`Cpp11` is still supported as deprecated alias for `Latest`.
|
|
Found via `codespell`
|
|
GDScript duplicate arguments bug fixed
|
|
fix: Classes can't have pass
|
|
there was a logic error in for loop range argument that
check if all of the argument were constants, fixed
|
|
|
|
|
|
- Renames PackedIntArray to PackedInt32Array.
- Renames PackedFloatArray to PackedFloat32Array.
- Adds PackedInt64Array and PackedFloat64Array.
- Renames Variant::REAL to Variant::FLOAT for consistency.
Packed arrays are for storing large amount of data and creating stuff like
meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of
memory. That said, many users requested the ability to have 64 bits packed
arrays for their games, so this is just an optional added type.
For Variant, the float datatype is always 64 bits, and exposed as `float`.
We still have `real_t` which is the datatype that can change from 32 to 64
bits depending on a compile flag (not entirely working right now, but that's
the idea). It affects math related datatypes and code only.
Neither Variant nor PackedArray make use of real_t, which is only intended
for math precision, so the term is removed from there to keep only float.
|
|
This attribute is now part of the standard we target so we no longer
need compiler-specific hacks.
Also enables -Wimplicit-fallthrough for Clang now that we can properly
support it. It's already on by default for GCC's -Wextra.
Fixes new warnings raised by Clang's -Wimplicit-fallthrough.
|
|
objects and made them default.
|
|
Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are
sugar for `Vector<Type>`.
|
|
|
|
Those keywords were deprecated for 3.1 in #22087.
Also fix token name for `TK_REMOTE`, should be "remote" like the keyword.
|
|
Disabled re-assigning 'self'
|
|
|
|
lookup was always done on top level script instead of advancing to subclass each time.
this commit changes the lookup to always be at last found subclass
|
|
|
|
Needed because otherwise the certain type operations (such as type
casting) used as a function argument might become unresolved on release,
causing a compilation failure.
Fix #28680
|
|
This ensures that a value without type won't be wrongly assigned to a
typed variable when the types mismatch.
|
|
Avoids the user breaking things by creating a "script" variable with
something else, effectively overwriting the "script" slot on Object.
|
|
|
|
Fix #26556
|
|
GDScript: Allow copy constructor for built-in types
|
|
Those are implicitly defined in Variant.
|
|
This makes the error message clearer as it might be used to call
functions with side effects.
|
|
This is needed in a all local variables with assigment to properly set
the typed operation.
Fix #34928
|
|
GDScript: enable type checks on release mode
|