code: private void validateClassDeclaration(Node n, boolean isAmbient) {
      validateClassHelper(n, isAmbient);
      validateName(n.getFirstChild());
    }
docs: In a class declaration, unlike a class expression,
  the class name is required.