}
public void emptyDeclarationMustHaveNoModifiers(EmptyDeclaration node) {
Modifiers modifiers = node.astModifiers();
if (!modifiers.astKeywords().isEmpty() || !modifiers.astAnnotations().isEmpty()) {
node.addMessage(error(MODIFIERS_MODIFIER_NOT_ALLOWED, "Empty Declarations cannot have modifiers."));
}
}
private void generateExclusivityError(int implicit, int exclusive, Modifiers modifiers) {