IntelliJ-Luanalysis icon indicating copy to clipboard operation
IntelliJ-Luanalysis copied to clipboard

Add support for typing accessors/modifiers (getters/setters)

Open Benjamin-Dobell opened this issue 4 years ago • 0 comments

Lua's metatable and userdata functionality both provide mechanisms for a "property" accessor on a table/userdata to return a value of one type, whilst a different type may be accepted for assignment. We should provide a mechanism to type such "properties".

Additionally, some "fields" are read or write-only; perhaps these could be typed by simply marking a setter or getter type as void?

Benjamin-Dobell avatar Jul 27 '20 06:07 Benjamin-Dobell