riej / lsl

Linden Script (LSL) language plugin for IntelliJ IDEA
MIT License
5 stars 2 forks source link

The default state is considered empty while it isn't #14

Closed mewore closed 1 year ago

mewore commented 1 year ago

This is a regression from a commit after v0.1.11 (so it hasn't made it into an official version as of now)

To reproduce, simply add this state definition:

default
{
    state_entry()
    {
    }
}

(This is valid code.)

I've confirmed that the commit which causes this is 7a2d39f6762141bf65b71bcb93289b5cae8258d8.

riej commented 1 year ago

The problem was the same as with arguments. Fixed it by using getter - silly me:)