</BUG>
public boolean accept(SNode it) {
return SLinkOperations.getTarget(it, "variable", false) == oldVariable;
}
<BUG>})) {
</BUG>
SLinkOperations.setTarget(SNodeOperations.replaceWithNewChild(oldRef, "jetbrains.mps.baseLanguage.structure.LocalVariableReference"), "variableDeclaration", newVariable, false);
}
}
public String getLocationString() {

SLinkOperations.setTarget(foreachStatement, "iterable", SLinkOperations.getTarget(node, "inputSequence", true), true);
SPropertyOperations.set(foreachStatement, "label", SPropertyOperations.getString(node, "label"));
SNode newVariable = SLinkOperations.setNewChild(foreachStatement, "variable", "jetbrains.mps.baseLanguage.structure.LocalVariableDeclaration");
SPropertyOperations.set(newVariable, "name", SPropertyOperations.getString(oldVariable, "name"));
SLinkOperations.setTarget(newVariable, "type", variableType, true);
for(SNode oldRef : Sequence.fromIterable(ListSequence.fromList(SNodeOperations.getDescendants(SLinkOperations.getTarget(foreachStatement, "body", true), "jetbrains.mps.baseLanguage.collections.structure.ForEachVariableReference", false)).where(new IWhereFilter <SNode>() {
public boolean accept(SNode it) {
return SLinkOperations.getTarget(it, "variable", false) == oldVariable;
}
}))) {
SLinkOperations.setTarget(SNodeOperations.replaceWithNewChild(oldRef, "jetbrains.mps.baseLanguage.structure.LocalVariableReference"), "variableDeclaration", newVariable, false);
}
}
public String getLocationString() {
