.replaceChild(ref, use.node);
}
}
}
if (!decls.isEmpty()) {
Statement first = body.children().get(0);
MultiDeclaration md;
if (first instanceof MultiDeclaration) {
md = (MultiDeclaration) first;
} else if (first instanceof Declaration) {
md = new MultiDeclaration(
FilePosition.span(pos, first.getFilePosition()),
Collections.singletonList((Declaration) first));
body.replaceChild(md, first);
} else if (decls.size() == 1) {
body.insertBefore(decls.get(0), first);
return;