mirror of https://github.com/tbklang/tlang.git
Merge fff5f28506
into cd9fb4aa66
This commit is contained in:
commit
2b30585a71
|
@ -563,33 +563,6 @@ public class DNodeGenerator
|
|||
return node;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Used for maintaining dependencies along a trail of `x.y.z`
|
||||
*/
|
||||
private DNode[][string] pathTrailDeps;
|
||||
private void addToPathTrail(string finalEntityName, DNode dep)
|
||||
{
|
||||
bool found = false;
|
||||
foreach(string entityName; pathTrailDeps.keys)
|
||||
{
|
||||
if(cmp(entityName, finalEntityName) == 0)
|
||||
{
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(found == false)
|
||||
{
|
||||
pathTrailDeps[finalEntityName] = [];
|
||||
}
|
||||
|
||||
pathTrailDeps[finalEntityName] ~= dep;
|
||||
|
||||
}
|
||||
|
||||
|
||||
private DNode expressionPass(Expression exp, Context context)
|
||||
{
|
||||
ExpressionDNode dnode = poolT!(ExpressionDNode, Expression)(exp);
|
||||
|
|
Loading…
Reference in New Issue