mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The code in TypeBase::gatherAllSubstitutions() walks a declaration context and type to form a complete set of substitutions for a (nested) type. When provided with a context for a nested extension---e.g., "extension OuterGeneric.InnerGeneric", it would skip over OuterGeneric due to the lexical nesting of DeclContexts not matching the semantic nesting. Teach this function to determine the type parameters without walking DeclContexts.
54 KiB
54 KiB