diff --git a/source/tlang/compiler/codegen/instruction.d b/source/tlang/compiler/codegen/instruction.d index 6a10ac0a..b9773821 100644 --- a/source/tlang/compiler/codegen/instruction.d +++ b/source/tlang/compiler/codegen/instruction.d @@ -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; } } \ No newline at end of file