Issue #306 editing AS directly - store register precedence FIX

This commit is contained in:
Jindra Pet��k
2014-02-24 20:46:56 +01:00
parent d4e9ee2d1f
commit 54bd2439d2
2 changed files with 3 additions and 2 deletions
@@ -63,7 +63,7 @@ public class StoreRegisterActionItem extends ActionItem implements SetTypeAction
}
public StoreRegisterActionItem(GraphSourceItem instruction, RegisterNumber register, GraphTargetItem value, boolean define) {
super(instruction, PRECEDENCE_PRIMARY);
super(instruction, PRECEDENCE_ASSIGMENT);
this.value = value;
this.register = register;
this.define = define;
@@ -58,6 +58,7 @@ public class VariableActionItem extends ActionItem {
public void setBoxedValue(ActionItem it) {
this.it = it;
this.precedence = it.getPrecedence();
}
public ActionItem getBoxedValue() {
@@ -108,5 +109,5 @@ public class VariableActionItem extends ActionItem {
}
return it.needsSemicolon();
}
}