swiftlang / swift-syntax

A set of Swift libraries for parsing, inspecting, generating, and transforming Swift source code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Parser] Misparsed function parameter with keyword argument '_const'

AppAppWorks opened this issue · comments

Description

One would expect FunctionParameterSyntax.firstName to be "_const",

func const(_const map: String) {}

However the parser incorrectly recognizes _const as DeclModifier, and FunctionParameterSyntax.firstName becomes "map".

Steps to Reproduce

No response

Synced to Apple’s issue tracker as rdar://133105836