mirror of https://github.com/tbklang/tlang.git
DNodeGenerator
- When resolving the entity (`Variable`) of which a `VariableExpression` refers to; use the `VariableExpression`'s `parentOf()` instead of the passed in `Context`
This commit is contained in:
parent
eee2547e07
commit
091954a863
|
@ -716,7 +716,7 @@ public class DNodeGenerator
|
|||
varExp.setContext(context);
|
||||
|
||||
// Resolve the entity the name refers to
|
||||
Entity namedEntity = tc.getResolver().resolveBest(context.getContainer(), nearestName);
|
||||
Entity namedEntity = tc.getResolver().resolveBest(varExp.parentOf(), nearestName);
|
||||
|
||||
|
||||
/* If the entity was found */
|
||||
|
|
Loading…
Reference in New Issue