Fixes with operation bug #1174

This commit is contained in:
Mike Farah
2022-04-14 12:03:18 +10:00
parent 13a27e8b2d
commit 6f9f80cc48
2 changed files with 17 additions and 3 deletions
+7 -3
View File
@@ -20,9 +20,13 @@ func withOperator(d *dataTreeNavigator, context Context, expressionNode *Express
updateExp := expressionNode.RHS.RHS
_, err = d.GetMatchingNodes(updateContext, updateExp)
if err != nil {
return Context{}, err
for el := updateContext.MatchingNodes.Front(); el != nil; el = el.Next() {
candidate := el.Value.(*CandidateNode)
_, err = d.GetMatchingNodes(updateContext.SingleChildContext(candidate), updateExp)
if err != nil {
return Context{}, err
}
}
return context, nil