Types moved to jode.type

type bug fix


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@599 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 40616f0ac6
commit bd56505f03
  1. 9
      jode/jode/flow/CreateAssignExpression.java

@ -19,7 +19,7 @@
package jode.flow;
import jode.expr.*;
import jode.Type;
import jode.type.Type;
public class CreateAssignExpression {
@ -155,16 +155,17 @@ public class CreateAssignExpression {
((LocalLoadOperator)simple).getLocalInfo().combineWith
(((LocalStoreOperator)store).getLocalInfo());
rhsType = Type.tString;
/* ... and remove it. */
if (lastExpr.getParent() != null) {
ComplexExpression ce = (ComplexExpression)lastExpr.getParent();
StringAddOperator addOp = (StringAddOperator) ce.getOperator();
addOp.clearFirstType();
ce.setSubExpressions(0,lastExpr.getSubExpressions()[1]);
} else
rhsType = Type.tString;
} else {
rhsType = lastExpr.getOperator().getOperandType(1);
rightHandSide = lastExpr.getSubExpressions()[1];
}
opIndex = Operator.ADD_OP;
}

Loading…
Cancel
Save