swiftlang / swift-syntax

A set of Swift libraries for parsing, inspecting, generating, and transforming Swift source code.
Apache License 2.0
3.24k stars 413 forks source link

Fix issue that caused `AccessorDeclSyntax` initializer with header + body to be misparsed #2739

Closed ahoppen closed 3 months ago

ahoppen commented 3 months ago

get {} was parsed by Parser.parseDeclaration() but it doesn't parse accessors.

AccessorDeclSyntax needs a special implementation of init(header:bodyBuilder:).

rdar://131720084

ahoppen commented 3 months ago

@swift-ci Please test

ahoppen commented 3 months ago

@swift-ci Please test

ahoppen commented 3 months ago

@swift-ci Please test Windows