Added dependency mechanism to Entity

typecheck_reliancetree
Tristan B. Kildaire 2021-06-06 23:10:15 +02:00
parent 88a6346993
commit 28bbd68857
1 changed files with 10 additions and 0 deletions

View File

@ -162,6 +162,16 @@ public class Entity : Statement
{ {
return name; return name;
} }
private Entity[] deps;
public Entity[] getDeps()
{
return deps;
}
public void addDep(Entity entity)
{
deps ~= entity;
}
} }
/* TODO: DO we need intermediary class, TypedEntity */ /* TODO: DO we need intermediary class, TypedEntity */