DescriptionIDL: Use IdlArrayOrSequenceType for array/sequence IDL types
Representing array and sequence types this way, rather than via auxiliary
flags on the member type, means exotic types like array-of-arrays,
array-of-sequences, arrays-of-nullables and similar can be supported.
More importantly, this also means that an array or sequence type can't be
mistaken for its member type if you forget to check the "is array" and
"is sequence" flags, and thus lets us remove a bunch of "is this an array
or sequence type" checks from code that has nothing to do with supporting
arrays or sequences.
This patch doesn't change code generation.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180298
Patch Set 1 : #
Total comments: 25
Patch Set 2 : address comments #Patch Set 3 : and => or #Patch Set 4 : clean-up v8_type usage #
Total comments: 3
Patch Set 5 : set is_sequence=True for sequence types #
Total comments: 3
Patch Set 6 : clean-up is_array/is_sequence #Patch Set 7 : address nits #Patch Set 8 : rebased #Patch Set 9 : rebased #Patch Set 10 : simplify cpp_type_has_null_value() #
Messages
Total messages: 15 (0 generated)
|