summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/language_server/gdscript_language_protocol.cpp
diff options
context:
space:
mode:
authorocean (they/them) <anvilfolk@gmail.com>2023-05-21 19:22:00 -0400
committerocean (they/them) <anvilfolk@gmail.com>2023-06-15 07:16:31 -0400
commit861743cd04dd1b46392b969ae5332a21b69f21b6 (patch)
tree67ada843e8aff868584d0ff71da21669e723956b /modules/gdscript/language_server/gdscript_language_protocol.cpp
parent773414606079fa745d1c37fce49324ab6a09e972 (diff)
downloadredot-engine-861743cd04dd1b46392b969ae5332a21b69f21b6.tar.gz
GDScript: add errors when calling unimplemented virtual functions
This PR does a small refactor of how method flags are handled in the GDScript analyzer. This way, it adds support for the analyzer to use any of MethodInfo's flags, where previously it could only use METHOD_FLAG_STATIC and METHOD_FLAG_VARARG. As a side-effect, this also normalizes behavior between editor and release templates, which fixes #76938. The tests added also brought a different issue to light, where using `super()` appears to generate a return variable discarded on calling super's _init(), which doesn't have a return value. This should be tackled in a different PR, which will have to change the output of this PR's tests.
Diffstat (limited to 'modules/gdscript/language_server/gdscript_language_protocol.cpp')
0 files changed, 0 insertions, 0 deletions