mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Updating r22145, this patch adds pointers from a TypeRefinementContext to the AST node that introduced the context, along with the reason for refinement. This reason supports the scenario where an AST node may introduce multiple refinement contexts (e.g., eventually we want an IfStmt to introduce two refinement contexts, one for the Then branch and one for the Else branch. The patch also fixes a memory leak for the storage holding a refinement context's children. Swift SVN r22232
53 KiB
53 KiB