usagi-coffee / tree-sitter-abl

OpenEdge ABL grammar for tree-sitter
MIT License
7 stars 1 forks source link

GET and SET in Property definition throws Error when containing Additional Logic #56

Closed eglekaz closed 2 months ago

eglekaz commented 2 months ago

Example:

class TestClass:

    define public property m_Total as integer no-undo
        get.
        set.

    define public property Totals as integer no-undo
        get:
            if m_Total < 0 then
                return 0.
            else
                return m_Total.
            end.
        end get.

        set (newValue as integer):
            m_Total = newValue.
        end set.  
end class.
jkbz64 commented 2 months ago

Few things: