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>
test input file