ABT.MemberIterator.Status.LocateStruct C# (CSharp) Method

LocateStruct() private method

Try to match a given struct. Go down to find the first element of the same struct Type.
private LocateStruct ( StructOrUnionType type ) : void
type StructOrUnionType
return void
            private void LocateStruct(StructOrUnionType type) {
                while (!this.CurType.EqualType(type)) {
                    if (this.CurType.IsScalar) {
                        throw new InvalidOperationException("Trying to match a struct or union, but found a scalar.");
                    }

                    // Go down one level.
                    this.indices.Add(0);
                }
            }