set(node, m);
}
@Override public void visitBlock(JCBlock node) {
Node n;
Block b = new Block();
fillList(node.stats, b.rawContents());
setPos(node, b);
if (hasFlag(FlagKey.BLOCKS_ARE_INITIALIZERS)) {
if ((node.flags & Flags.STATIC) != 0) {
n = setPos(node, new StaticInitializer().astBody(b));
} else {
// For some strange reason, solitary ; in a type body are represented not as JCSkips, but as JCBlocks with no endpos. Don't ask me why!
if (b.rawContents().isEmpty() && node.endpos == -1) {
n = setPos(node, new EmptyDeclaration());
} else {
n = setPos(node, new InstanceInitializer().astBody(b));
}
}