From dfc90451bb6f436ed21fd6493b5c8348e12c0099 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Mon, 12 Dec 2022 15:14:43 +0200 Subject: [PATCH] Instruction - Added `getContext()` to Instruction --- source/tlang/compiler/codegen/instruction.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/tlang/compiler/codegen/instruction.d b/source/tlang/compiler/codegen/instruction.d index 60b540f0..b0c7b807 100644 --- a/source/tlang/compiler/codegen/instruction.d +++ b/source/tlang/compiler/codegen/instruction.d @@ -29,6 +29,11 @@ public class Instruction { return "TODO: This instruction has not provided an emit text yet! (This is an error!)"; } + + public final Context getContext() + { + return context; + } } public class FetchInst : Instruction