"{foreach $xxx in $xxxs}\n" +
" {call .foo}\n" + // should not be changed (param references loop var)
" {param xxx: $xxx /}\n" +
" {/call}\n" +
"{/foreach}";
SoyFileSetNode soyTree = SharedTestUtils.parseSoyCode(soyCode);
CallNode callNodeOutsideLoopBeforePass = (CallNode) SharedTestUtils.getNode(soyTree, 0);
CallNode callNodeInsideLoopBeforePass = (CallNode) SharedTestUtils.getNode(soyTree, 1, 0, 0);
(new ChangeCallsToPassAllDataVisitor()).exec(soyTree);
CallNode callNodeOutsideLoopAfterPass = (CallNode) SharedTestUtils.getNode(soyTree, 0);