This adds support to parse out top level tuples of varying sizes and nested tuples as well.
The resulting IDL type "tuple" has an array for the inner tuple types.
Changes to Composites
Until now Composite types assumed 1- 2 inner types, i.e. for Vecs and HashMaps.
However for Tuples there can be an arbitrary amount of inner types >= 2. Thus inner types
in Composites are now stored in a Vec of arbitrary size.
Summary
This adds support to parse out top level tuples of varying sizes and nested tuples as well. The resulting IDL type
"tuple"
has an array for the inner tuple types.Changes to Composites
Until now
Composite
types assumed 1- 2 inner types, i.e. forVec
s andHashMap
s. However forTuple
s there can be an arbitrary amount of inner types>= 2
. Thus inner types inComposite
s are now stored in aVec
of arbitrary size.Examples
Top Level Tuple
Nested Tuple
Multi Inner Type Tuple