You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method get_Up is declared with property and as such Angelscript allows us to use this method as a property without the get_ prefix and without calling it:
autov = Up;
However, the above line of code will be underlined with an error and the property Up will not be offered for completion:
Although, in a real script one would use the "normal" way of declaring getters and setters, when registering them from the application side, we must still use the function version.
It is also important to note the ScriptEngine option asEP_PROPERTY_ACCESSOR_MODE that changes the behavior, so the LSP might consider allowing for this option as well. More info here.
The text was updated successfully, but these errors were encountered:
Properties defined with get_ and set_ are now recognized and you can use them in completion.
However, there are still bugs related to renaming and definition jumps
Consider the following example:
The method
get_Up
is declared withproperty
and as such Angelscript allows us to use this method as a property without theget_
prefix and without calling it:However, the above line of code will be underlined with an error and the property
Up
will not be offered for completion:Although, in a real script one would use the "normal" way of declaring getters and setters, when registering them from the application side, we must still use the function version.
More info can be found here.
It is also important to note the
ScriptEngine
optionasEP_PROPERTY_ACCESSOR_MODE
that changes the behavior, so the LSP might consider allowing for this option as well. More info here.The text was updated successfully, but these errors were encountered: