Menu

#22 Bug variable2 – pre increment marked as post increment.

open
None
5
2005-03-03
2005-02-25
No

pre increment and decrement marked as post increment
and decrement also post increment and decrement marked
as pre increment and decrement. I.e. it is inverted.
Note: post op is indicated by not having: preOp="true"/

Test input file

class myClass {
myMethod() {
++i;
}
}

Test output file

<?xml version="1.0" encoding="UTF-8"?>
<package>
<classDef name="myClass">
<method constructor="true" name="myMethod">
<parameterList/>
<unaryOp operator="++">
<variable name="i"/>
</unaryOp>
</method>
</classDef>
</package>

Text result expected

<?xml version="1.0" encoding="UTF-8"?>
<package>
<classDef name="myClass">
<method constructor="true" name="myMethod">
<parameterList/>
<unaryOp operator="++" preOp="true"/>
<variable name="i"/>
</unaryOp>
</method>
</classDef>
</package>

Discussion

  • Martin Baker

    Martin Baker - 2005-02-25

    test input file

     
  • Martin Baker

    Martin Baker - 2005-03-03
    • assigned_to: negocris --> martinbaker