Fixed addInfo for FuncCallInstr instruction

This commit is contained in:
Tristan B. Velloza Kildaire 2022-02-20 15:35:18 +02:00
parent 18eba51144
commit 3cac1b496d
1 changed files with 15 additions and 1 deletions

View File

@ -153,11 +153,25 @@ public class FuncCallInstr : CallInstr
this.functionName = functionName;
evaluationInstructions.length = argEvalInstrsSize;
addInfo = "FunctionName: "~functionName;
updateAddInfo();
}
/**
* FuncCallInstr is built-bit-by-bit so toString information will change
*/
private void updateAddInfo()
{
addInfo = "FunctionName: "~functionName ~" EvalInstrs: "~ to!(string)(getEvaluationInstructions());
}
public void setEvalInstr(ulong argPos, Instruction instr)
{
evaluationInstructions[argPos] = instr;
updateAddInfo();
}
public Instruction[] getEvaluationInstructions()
{
return evaluationInstructions;
}
}