swiftlang / swift-syntax

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

Remove `secondName` parameter from `EnumCaseDeclSyntax` #2676

Closed ahoppen closed 1 month ago

ahoppen commented 1 month ago

Enum cases cannot have a second name.

ahoppen commented 1 month ago

@swift-ci Please test

ahoppen commented 1 month ago

I was wrong, enum case declarations can have a second name if the first one is unlabeled, like case abc(_ internalLable: Int).