Dependency generation

Full path evaluation update

If the local segment is a Class-type-of Container then run
a class static allocation on it and make the current dnode
dependent on that ClassStaticAllocation dnode returned from
classStaticAllocate().
This commit is contained in:
Tristan B. Velloza Kildaire 2022-10-13 18:32:33 +02:00
parent 2d58d5f0d7
commit 15d2bf6b68
1 changed files with 6 additions and 0 deletions

View File

@ -823,6 +823,12 @@ public class DNodeGenerator
VariableExpression varExpCont = new VariableExpression(nearestName);
/* TODO: We need to add a chck to which type of Container it is, if it is a Class then we need to do a static init */
if(cast(Clazz)namedEntity)
{
Clazz clazz = cast(Clazz)namedEntity;
dnode.needs(classPassStatic(clazz));
}
/* TODO: Recurse on `newPath` */
/* FIXME: Context is bad so lookup fails, must be neweer upsdated local container */