mirror of
https://github.com/apple/swift.git
synced 2026-10-02 10:58:03 +02:00
Rather than placing extension macros in a synthesized file unit, track them separately `getTopLevelDeclsWithAuxiliaryDecls`. This ensures that they are placed in the same `IRGenModule` as the nominal being extended. This requires fixing up some places that weren't previously using `getTopLevelDeclsWithAuxiliaryDecls`. This also required introducing `shouldWalkTopLevelAuxiliaryDecls` to ASTWalker, which is an unfortunate hack due to the fact that many ASTWalkers currently have misconfigured macro-walking preferences. rdar://185645710