Skip to content

swift syntax should be able to recover function parameters without argument labels #2254

@tayloraswift

Description

@tayloraswift

Description

SwiftParser currently can’t handle DocC-style abridged signatures such as:

init(String.Index, x:(Int) -> Int) rethrows

as they are considered malformed parse trees.

more details at https://forums.swift.org/t/swiftsyntax-how-to-repair-abbreviated-function-signatures/67602

Metadata

Metadata

Assignees

Labels

SwiftParserBugs in the (new) Parser written in SwiftenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions