diff --git a/source/tlang/compiler/symbols/data.d b/source/tlang/compiler/symbols/data.d index 18e1900..e59af66 100644 --- a/source/tlang/compiler/symbols/data.d +++ b/source/tlang/compiler/symbols/data.d @@ -70,6 +70,7 @@ public class Program public class Statement { private Container container; + private bool marked; public final void parentTo(Container container) { @@ -80,6 +81,22 @@ public class Statement { return container; } + + /** + * Returns the ready-to-reference state of this Statement + */ + public bool isMarked() + { + return marked; + } + + /** + * Marks this Statement as ready-to-reference + */ + public void mark() + { + marked = true; + } } public enum AccessorType