| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This adds back a function available in 3.x: exporting the GDScript
files in a binary form by converting the tokens recognized by the
tokenizer into a data format.
It is enabled by default on export but can be manually disabled. The
format helps with loading times since, the tokens are easily
reconstructed, and with hiding the source code, since recovering it
would require a specialized tool. Code comments are not stored in this
format.
The `--test` command can also include a `--use-binary-tokens` flag
which will run the GDScript tests with the binary format instead of the
regular source code by converting them in-memory before the test runs.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Using 2.2.7.dev115+g0eb441d6.
Had to add `cancelled` to the ignore list, as it's a Wayland signal which
we're handling in our code, so we don't want codespell to fix that "typo".
Also includes the typo fix from #87927.
Co-authored-by: Divyanshu Shekhar <61140213+divshekhar@users.noreply.github.com>
|
|/ / / |
|
|\ \ \
| | | |
| | | |
| | | | |
GDScript: Allow utility functions to be used as `Callable`
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This reverts commit c7f68a27ec4b825302998eeb5a400f869cd21cf7.
We still think GDScript files need UIDs to allow safe refactoring,
but we're still debating what form those should take exactly.
So far there seems to be agreement that it shouldn't be done via an
annotation as implemented here, so we're reverting this one for now,
to revisit the feature in a future PR.
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
Allow `free()` to be used as Callable
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This method is registered in a special way so ClassDB doesn't naturally
know about its existence. Here it is hardcoded if any other option fail
to check if it is about the `free()` method and, if so, say it exists
and return a Callable.
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
KoBeWi/This_commit_message_is_auto-generated._Do_not_modify_it-
Add UID support to GDScript files
|
| |/ / / / |
|
|/ / / / |
|
|\ \ \ \
| |/ / /
|/| | |
| | | | |
Add unit test runner for autocompletion
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
dalexeev/gds-allow-property-getter-empty-parentheses
GDScript: Allow empty parentheses for property getter declaration
|
| | | | | |
|
|\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | | |
GDScript: Improve error messages for invalid indexing
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
These errors are very common when using an invalid property name
or calling on an object of the wrong type, and the previous message
was a bit cryptic for users.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
Co-authored-by: golfinq <golfinqz@gmail.com>
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
dalexeev/gds-fix-static-func-as-callable-in-static-context
GDScript: Fix accessing static function as `Callable` in static context
|
| | |_|/ /
| |/| | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | |
| | | | | |
Core: Allow methods of built-in `Variant` types to be used as Callables
|
| | |_|/
| |/| | |
|
|/ / /
| | |
| | |
| | |
| | | |
Also updates some error messages related to this kind of check
across the codebase.
|
| | | |
|
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This improves the performance of typed calls to engine methods when the
argument types are exact.
Using validated calls delegate more of the work the core instead of
doing argument unpacking in the VM. It also does not need different
instructions for each return type, simplifying the code.
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | | |
dalexeev/gds-fix-unsafe-call-arg-variant-constructors
GDScript: Fix `UNSAFE_CALL_ARGUMENT` warning for `Variant` constructors
|
| |/ |
|
|\ \
| | |
| | |
| | | |
GDScript: Load global classes when running debug tests
|
| | |
| | |
| | |
| | |
| | | |
So when running compiler debug tests it works with dependencies within a
project.
|
| |/
|/| |
|
|\ \
| | |
| | |
| | | |
GDScript: Add return type covariance and parameter type contravariance
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | | |
GDScript: Fix duplication of inherited script properties
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
GDScript: Make array literal typed if `for` loop variable type is specified
|
| | | | | |
|
|\ \ \ \ \
| |_|_|/ /
|/| | | |
| | | | | |
GDScript: Implement pattern guards for match statement
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Within a match statement, it is now possible to add guards in each
branch:
var a = 0
match a:
0 when false: print("does not run")
0 when true: print("but this does")
This allows more complex logic for deciding which branch to take.
|
|\ \ \ \ \
| |/ / / /
|/| | | |
| | | | | |
GDScript: Improve call analysis
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | | |
* Add missing `UNSAFE_CALL_ARGUMENT` warning.
* Fix `Object` constructor.
* Display an error for non-existent static methods.
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
GDScript: Add `INFERRED_DECLARATION` warning
|
| |/ / / |
|
| |/ /
|/| | |
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | |
| | | |
dalexeev/gds-fix-update-array-literal-in-weak-context
GDScript: Don't make array literal typed in weak type context
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | | |
GDScript: Fix subscript resolution for constant non-metatypes
|
| | | | |
|