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:
Tristan B. Velloza Kildaire 2024-05-13 22:37:48 +02:00
parent eee2547e07
commit 091954a863
1 changed files with 1 additions and 1 deletions

View File

@ -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 */