}
/** Do a node->node conversion of a VarExprList - return original VarExprList for "no change" */
public static VarExprList transform(NodeTransform nodeTransform, VarExprList varExprList)
{
VarExprList varExprList2 = new VarExprList() ;
boolean changed = false ;
for ( Var v : varExprList.getVars() )
{
Expr expr = varExprList.getExpr(v) ;
Var v2 = (Var)nodeTransform.convert(v) ;
Expr expr2 = ( expr != null ) ? transform(nodeTransform, expr) : null ;
if ( ! equal(v, v2) || ! equal(expr, expr2) )
changed = true ;
varExprList2.add(v2, expr2) ;
}
if ( ! changed )
return varExprList ;
return varExprList2 ;
}