merge method

Implementation

ValidationResult merge(ValidationResult result) {
  this.isValid = this.isValid && result.isValid;
  if (!result.isValid) {
    this.firstInvalidNode ??= result.firstInvalidNode;
    this.firstInvalidPage ??= result.firstInvalidPage;
  }
  return this;
}