}
private void constructorInvocationMustBeFirst(Statement node, String desc) {
if (node.getParent() == null) return;
Block b = node.upToBlock();
if (b == null || b.upToConstructorDeclaration() == null || b.astContents().first() != node) {
node.addMessage(error(CONSTRUCTOR_INVOCATION_NOT_LEGAL_HERE, "Calling " + desc + " must be the first statement in a constructor."));
return;
}
}