| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| | |
GDScript: Reset local variables on exit from block
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | | |
GDScript: Fix some bugs with static variables and functions
|
| | | |
|
|\ \ \
| | | |
| | | | |
Clarify `@rpc` annotation arguments docs
|
| | | | |
|
|\ \ \ \
| |_|/ /
|/| | |
| | | | |
GDScript: Fix error message for LUA-style dictionary
|
| | | | |
|
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This applies our existing style guide, and adds a new rule to that style
guide for modular components such as platform ports and modules:
Includes from the platform port or module ("local" includes) should be listed
first in their own block using relative paths, before Godot's "core" includes
which use "absolute" (project folder relative) paths, and finally thirdparty
includes.
Includes in `#ifdef`s come after their relevant section, i.e. the overall
structure is:
- Local includes
* Conditional local includes
- Core includes
* Conditional core includes
- Thirdparty includes
* Conditional thirdparty includes
|
| |/
|/| |
|
|\ \
| | |
| | |
| | | |
Add missing `script_type` `nullptr` check
|
| | |
| | |
| | |
| | | |
Co-authored-by: Fabio Alessandrelli <fabio.alessandrelli@gmail.com>
|
| | |
| | |
| | |
| | | |
Rework Navigation Avoidance.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Which allows editable data associated with a particular class instead of
the instance. Scripts with static variables are kept in memory
indefinitely unless the `@static_unload` annotation is used or the
`static_unload()` method is called on the GDScript.
If the custom function `_static_init()` exists it will be called when
the class is loaded, after the static variables are set.
|
|\ \ \
| | | |
| | | | |
Improve GDScript documentation generation & behavior
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Removes documentation generation (docgen) from the GDScript compiler to
its own file. Adds support for GDScript enums and signal parameters and
quite a few other assorted fixes and improvements.
|
|\ \ \ \
| |/ / /
|/| | |
| | | | |
Make GDScript type not found errors more informative.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This PR removes a check for whether a datatype is a meta type when
generating a datatype's to_string() result. This means that error
messages that fail to find the type will now print their class names,
which is much more useful when trying to identify errors.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
GDScript: Fix and improve annotation parsing
|
| | |/ /
| |/| | |
|
|\ \ \ \
| |/ / /
|/| | | |
fix access to identifiers that are reserved keywords
|
| |/ / |
|
|/ / |
|
|/ |
|
|\
| |
| |
| | |
Fix error spam when naming a func at the end of the script
|
| | |
|
| | |
|
|/ |
|
| |
|
|\
| |
| |
| | |
GDScript: Allow strings as multiline comments
|
| |
| |
| |
| | |
Bring back the behavior in 3.x that was left out by oversight.
|
|/
|
|
|
|
| |
- Allow identifiers similar to keywords if they are in ASCII range.
- Allow constants to be treated as regular identifiers.
- Allow keywords that can be used as identifiers in expressions.
|
| |
|
|\
| |
| | |
GDScript: Fix inheritance check of @onready for inner classes
|
| | |
|
|\ \
| |/
|/| |
Fix @export_multiline for PackedStringArray
|
| | |
|
|\ \
| | |
| | |
| | | |
Fix unreachable code warning for elif block
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | | |
GDScript: Don't allow @onready without inheriting Node
|
| | | | |
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
GDScript: Add warnings that are set to error by default (take 2)
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Adds a list of default levels for all warning so they can be set
individually.
- Add warnings set by default to error for:
- Using `get_node()` without `@onready`.
- Using `@onready` together with `@export`.
- Inferring a static type with a Variant value.
- Overriding a native engine method.
- Adjust how annotations to ignore warnings are treated so they also
apply to method parameters.
- Clean up a bit how ignored warnings are set. There were two sets but
only one was actually being used.
- Set all warnings to the `WARN` level for tests, so they they can be
properly tested.
- Fix enum types in native methods signatures being set to `int`.
- Fix native enums being treated as Dictionary by mistake.
- Make name of native enum types use the class they are defined in, not
the direct super class of the script. This ensures they are always
equal even when coming from different sources.
- Fix error for signature mismatch that was only showing the first
default argument as having a default. Now it shows for all.
|
|/ / |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This reverts commit a166833bfa23a21a7bff196a85a20b014e7c1396.
This caused multiple regressions.
Needs to be redone with more testing before merge.
Fixes #72501.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Adds a list of default levels for all warning so they can be set
individually.
- Add warnings set by default to error for:
- Using `get_node()` without `@onready`.
- Using `@onready` together with `@export`.
- Inferring a static type with a Variant value.
- Overriding a native engine method.
- Adjust how annotations to ignore warnings are treated so they also
apply to method parameters.
- Clean up a bit how ignored warnings are set. There were two sets but
only one was actually being used.
- Set all warnings to the `WARN` level for tests, so they they can be
properly tested.
- Fix enum types in native methods signatures being set to `int`.
- Fix native enums being treated as Dictionary by mistake.
- Make name of native enum types use the class they are defined in, not
the direct super class of the script. This ensures they are always
equal even when coming from different sources.
- Fix error for signature mismatch that was only showing the first
default argument as having a default. Now it shows for all.
|