mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
* Simplify TupleTypeRepr parsing This patch introduces a TupleTypeReprElement struct that holds the locations for all relevant bits of tuple elements. It removes the NameLoc and UnderscoreLoc arrays from TupleTypeReprElement in favor of holding each of these on TupleTypeReprElement. These extra bits of info are required for full-fidelity representation in the Syntax library. * Remove TupleTypeReprBitfields and move EllipsisLoc out of TrailingObjects * Update users of TupleTypeRepr * Don't resize the elts if we're going to push_back * getType -> getElementType * Move ellipsis back into TrailingObjects. * Move NumElements into TupleTypeReprBitfields
72 KiB
72 KiB