Lines Matching defs:nullability
712 // nullability.
4539 /// Merge type nullability from for a redeclaration of the same entity,
4547 // Determine the nullability of both types.
4548 auto nullability = type->getNullability();
4551 // Easy case: both have nullability.
4552 if (nullability.has_value() == prevNullability.has_value()) {
4553 // Neither has nullability; continue.
4554 if (!nullability)
4558 if (*nullability == *prevNullability)
4561 // Complain about mismatched nullability.
4563 << DiagNullabilityKind(*nullability, usesCSKeyword)
4568 // If it's the redeclaration that has nullability, don't change anything.
4569 if (nullability)
4572 // Otherwise, provide the result with the same nullability.
4591 // Merge nullability of the result type.
4609 // Merge nullability.