Added marking capability to Statement

static_support
Tristan B. V. Kildaire 2021-06-04 11:36:58 +02:00
parent 09bb089998
commit 3051d6b66f
1 changed files with 17 additions and 0 deletions

View File

@ -70,6 +70,7 @@ public class Program
public class Statement public class Statement
{ {
private Container container; private Container container;
private bool marked;
public final void parentTo(Container container) public final void parentTo(Container container)
{ {
@ -80,6 +81,22 @@ public class Statement
{ {
return container; 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 public enum AccessorType