Skip to content

Commit 7e8458a

Browse files
committed
Adjustments to split FunctionParameterSyntax into multiple nodes for function parameters, closure parameters and enum parameters
Companion of swiftlang/swift-syntax#1455
1 parent 0105973 commit 7e8458a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwiftEvolve/Sources/SwiftEvolve/SyntaxExtensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ extension SubscriptDeclSyntax: DeclWithParameters {
8282
extension DeclWithParameters {
8383
public var name: String {
8484
let parameterNames = parameters.parameterList.map { param in
85-
"\(param.firstName?.text ?? "_"):"
85+
"\(param.firstName.text):"
8686
}
8787
return "\( baseName )(\( parameterNames.joined() ))"
8888
}

0 commit comments

Comments
 (0)