mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Codable's deep magic currently forces conformance checks in the middle of name lookup in order to inject CodingKeys into lookup results. This is compounded by the fact that this lookup fixup is occuring incrementally, meaning depending on order of requirements being looked up, Decl::getMembers() will give you a different answer. Compounding this, NameLookup relied on the LazyResolver to formalize this layering violation, and relied on implicit laziness to guard against re-entrancy. The approach is multi-pronged: 1) Shift the layering violation into the request evaluator 2) Spell out the kinds of resolution we support explicitly (make them easier to find and kill) 3) Remove the LazyResolver entrypoint this was relying on 4) Split off the property wrappers part into its own utility
46 KiB
46 KiB