include/swift/Basic/ByteTreeSerialization.h
void validateAndIncreaseFieldIndex(unsigned Index) {
    assert((NumFields != UINT_MAX) &&
           "setNumFields must be called before writing any value");
    assert(Index == CurrentFieldIndex && "Writing index out of order");
    assert(Index < NumFields &&
           "Writing more fields than object is expected to have");

    CurrentFieldIndex++;
  }
/// Validate that \p Index is the next field that is expected to be written,
/// does not exceed the number of fields in this object and that
/// \c setNumFields has already been called.
Validate that \p Index is the next field that is expected to be written,
does not exceed the number of fields in this object and that
\c setNumFields has already been called.
Validate that \ p Index is the next field that is expected to be written does not exceed the number of fields in this object and that \ c setNumFields has already been called .
void validateAndIncreaseFieldIndex(unsigned Index) {
    assert((NumFields != UINT_MAX) &&
           "setNumFields must be called before writing any value");
    assert(Index == CurrentFieldIndex && "Writing index out of order");
    assert(Index < NumFields &&
           "Writing more fields than object is expected to have");
    CurrentFieldIndex++;
  }
void validateAndIncreaseFieldIndex ( unsigned Index ) { assert ( ( NumFields != UINT_MAX ) && " " ) ; assert ( Index == CurrentFieldIndex && " " ) ; assert ( Index < NumFields && " " ) ; CurrentFieldIndex ++ ; }
Validate that \p Index is the next field that is expected to be written,
does not exceed the number of fields in this object and that
\c setNumFields has already been called.
Validate that \ p Index is the next field that is expected to be written does not exceed the number of fields in this object and that \ c setNumFields has already been called .