mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ModelASTWalker was previously constructing SyntaxNodes for EnumElementDecls manually when visiting their associated EnumCaseDecl so that they would appear as children rather than siblings. It wasn't actually walking these nodes though, so missed handling some things, e.g. closures passed as default argument values. These were also still being visited later, and because the first visit consumed all the associated TokenNodes, this was triggering an assertion due to the associated TokenNodes not matching expectations.
54 KiB
54 KiB