Remove redundant visitExpression of ForNonEmptyNode's parent node in ResolveExpressionTypesPass
The ExprList of the parent of the ForNonEmptyNode (ForNode) is already visited in the visitSoyNode method of the ResolveExpressionTypes pass.
GITHUB_BREAKING_CHANGES=None
@@ -485,8 +485,6 @@ public final class ResolveExpressionTypesPass extends CompilerFilePass {
@Override
protected void visitForNonemptyNode(ForNonemptyNode node) {
- // Visit the foreach iterator expression
- visitExpressions(node.getParent());
// Set the inferred type of the loop variable.
node.getVar().setType(getElementType(node.getExpr().getType(), node));
// Visit the node body
