From 3b36113a5b272944646ce7ca004487e20b3712b4 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Tue, 9 Nov 2021 15:49:59 +0200 Subject: [PATCH] Added Context --- source/tlang/compiler/codegen/instruction.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/tlang/compiler/codegen/instruction.d b/source/tlang/compiler/codegen/instruction.d index 787c30ca..36b3de78 100644 --- a/source/tlang/compiler/codegen/instruction.d +++ b/source/tlang/compiler/codegen/instruction.d @@ -1,9 +1,13 @@ module compiler.codegen.instruction; import std.conv : to; +import compiler.typecheck.dependency : DNodeGenerator; public class Instruction { + /* Context for the Instruction (used in emitter for name resolution) */ + public DNodeGenerator.Context context; + protected string addInfo; this()