Commit Graph

8 Commits

Author SHA1 Message Date
Holly Borla
6d65c11b4a [GenericEnvironment] Model opened pack element signatures as a complete clone
of the outer context signature, with an additional set of element type parameters
at depth + 1.
2022-11-23 11:16:27 -05:00
Holly Borla
6de85eea93 [ParameterPack] Use the 'getTypeParameterPacks' utility when computing the
reduced shape of a given type that is not directly a pack type or archetype.
2022-11-16 16:28:21 -08:00
Holly Borla
9eccfbd3ca [CSGen] Use a ShapeOf constraint when generating constraints for a pack
expansion expression.
2022-11-15 21:33:17 -08:00
Slava Pestov
5ee71250d5 AST: Fix TypeBase::getTypeParameterPacks() to not walk into nested PackExpansionTypes 2022-11-12 02:13:54 -05:00
Slava Pestov
30a1211a3b AST: Move getReducedShape() from CSSimplify.cpp to a method on TypeBase 2022-11-12 02:13:54 -05:00
Holly Borla
1ab9f8f7c6 [AST] Add helper methods to GenericTypeParamType for converting a given type
parameter to and from a pack type parameter.
2022-10-26 00:04:56 -07:00
Slava Pestov
a5453f1649 AST: Add new variant of swift::getParameterAt() which takes pack expansions into account 2022-10-16 21:37:25 -04:00
Slava Pestov
a10dc8e40b AST: New ParameterPack.cpp file with new algorithms for pack expansion substitution 2022-10-16 21:37:25 -04:00