if (numDefaults > 1)
code.append("\n");
numDefaults--;
}
}
IScopedNode sbn = node.getScopedNode();
boolean hasBody = sbn.getChildCount() > 0;
// adds the current block indent to the generated code
String indent = getIndent(getCurrentIndent() + (!hasBody ? 1 : 0));
String result = code.toString().replaceAll("\n", "\n" + indent);
// if the block dosn't have a body (children), need to add indent to head
if (!hasBody)