From 15617e7ceda8f0c5efef039c92883bd75809f3f1 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sun, 11 Dec 2022 18:08:52 +0200 Subject: [PATCH] DGen - Added note to `emitCodeQueue()` that instructions will need recursive `emit()` methods --- source/tlang/compiler/codegen/emit/dgen.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/tlang/compiler/codegen/emit/dgen.d b/source/tlang/compiler/codegen/emit/dgen.d index 6fc2b847..48981501 100644 --- a/source/tlang/compiler/codegen/emit/dgen.d +++ b/source/tlang/compiler/codegen/emit/dgen.d @@ -76,6 +76,8 @@ public final class DCodeEmitter : CodeEmitter private void emitCodeQueue(SList!(Instruction) codeQueue) { //TODO: Implement me + //NOTE: I think that every `Instruction` will need an `emit()` method + //of which sometimes can be recursive for instructions that are nested foreach(Instruction currentInstruction; codeQueue) {