BalticAmadeus / AblFormatter

Code formatter for Progress OpenEdge (ABL)
Apache License 2.0
5 stars 0 forks source link

Methods after properties sometimes get formatted with mistakes #226

Open gustason opened 1 month ago

gustason commented 1 month ago

For example,

class OpenEdge.DataAdmin.Core.JSONWriter inherits DataAdminWriter implements IDataAdminExporter:  
    define public property Formatted as logical no-undo 
    init true
    get.
    set. 

    constructor public JSONWriter (  ):
        super ().
    end constructor.

    method public void WriteToFile(serializable as IDataAdminSerializable,pcFile as char,pccollection as char):
    end method.

end class.

gets formatted as this:

class OpenEdge.DataAdmin.Core.JSONWriter inherits DataAdminWriter implements IDataAdminExporter:
    define public property Formatted as logical no-undo init true
        get.
        set. 

     constructor public JSONWriter (  ):
    super ().
end constructor.

   method public void WriteToFile(serializable as IDataAdminSerializable,pcFile as char,pccollection as char):
    end method.

end class.
gustason commented 1 month ago

Probably related to #209