Age | Commit message (Collapse) | Author |
|
|
|
GDScript: Refactor builtin functions
|
|
Fix subtracting colors and quats
|
|
|
|
GDScript(2.0) Documentation generation system
|
|
Values that are passed by reference are not suited for being constructed
at compile time because in this case they would be shared across all the
construction statements.
|
|
- ClassDoc added to GDScript and property reflection data were extracted
from parse tree
- GDScript comments are collected from tokenizer for documentation and
applied to the ClassDoc by the GDScript compiler
- private docs were excluded (name with underscore prefix and doesn't
have any doc comments)
- default values (of non exported vars), arguments are extraced from the
parser
- Integrated with GDScript 2.0 and new enums were added.
- merge conflicts fixed
|
|
GDScript: range function type check bug fixed
|
|
Fix: #43586
|
|
GDScript: Improve handling of operators
|
|
- Use the new functions in Variant to determine the validity and resulting
type of operators.
- Split the operator function in codegen between binary and unary, since
the unary ones have now a special requirement of having the second
argument to be the NIL type when requesting info.
|
|
It can wait until the analyzer itself is destructed, otherwise other
phases might be using freed parsers.
|
|
Otherwise this may lead to a crash when the dependency is not present.
|
|
They are now called "utility functions" to avoid confusion with methods
of builtin types, and be consistent with the naming in Variant.
Core utility functions are now available in GDScript. The ones missing
in core are added specifically to GDScript as helpers for convenience.
Some functions were remove when there are better ways to do, reducing
redundancy and cleaning up the global scope.
|
|
The call of range() in a for loop is optimized to use int or vectors, to
avoid allocating an array, however the type was set as array still. With
the new typed VM this is an issue as the type mismatch the actual value,
resulting in wrong instructions to be selected.
|
|
The underscore prefix was used to avoid the conflict between the `RID` class
name and the matching enum value in `Variant::Type`.
This can be fixed differently by prefixing uses of the `RID` class in `Variant`
with the scope resolution operator, as done already for `AABB`.
|
|
|
|
-Removed FuncRef, since Callable makes it obsolete
-Removed int_types.h as its obsolete in c++11+
-Changed color names code
|
|
-Discern between named, indexed and keyed
-Get direct access to functions for typed GDScript and GDNative bindings
-Small changes to some classes in order to work with the new setget binder
|
|
Fixed ParseError when calling Object.new()
|
|
Array/Dictionary Nodes no more reduced to array/dictionary variant
|
|
Using codespell 1.17.1.
Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
|
|
Fix: #41377
Fix: #20436
Fix: #41953
|
|
Fixed parser error when indexing a dictionary.
|
|
Fix: #41772
|
|
Fix: #41707
|
|
Fixes #41462 where calling Object.new() in GDScript gave an error.
I fixed it by adding exclusion when checking if the name is a builtin
type to exclude objects with a comment detailing why.
|
|
|
|
They can be reassigned as if it were a local variable.
|
|
|
|
Sometimes a singleton might depend on another before they are fully
compiled so we can't rely on globals in this case.
|
|
Since it's likely that they won't parse correctly.
|
|
|
|
|
|
This gets the correct parser and class node when resolving from a full
GDScript reference.
|
|
Fix GdScript Analyzier not detecting Resource subclass correctly
|
|
|
|
|
|
|
|
Also allow them to access previous values wihout referencing the enum.
|
|
It allows `get_node()` to be used with typed variables
This is marked as unsafe to warn the user.
|
|
Incidentally fix error message when no valid constructor is found which
was missing an end parenthesis.
|
|
|
|
|
|
|
|
Tidy up assignment operator check
|
|
Fix crash with null callee
|
|
GDScript operator evaluation validation bug fix
|
|
[GDScript] Add static HashMap cleanup.
|
|
The operator is already gathered by the parser, no need to do it again
in the analyzer.
|