[SR-9710] Return trailing comma
value when access to FunctionParameterSyntax.ellipsis
.
#436
Labels
bug
Something isn't working
Environment
Additional Detail from JIRA
md5: 6edd4f723170e810db835d1b3fdd1401
Issue Description:
When FunctionParameterSyntax.ellipsis property access, It returned wrong token about `tokenKind.kind == "comma"`.
You can check problem with after exec SwiftSyntax-issue-ellipsis.
And It can check result SwiftSyntax-issue-ellipsis repository's README.
SwiftSyntax-issue-ellipsis: https://github.com/omochi/SwiftSyntax-issue-ellipsis/blob/master/Sources/SwiftSyntax-issue-ellipsis/main.swift
Result
So, I access `ellipsis`(...), But I got `comma`(,) token.
And I confirmed more case for $ swiftc -emit-syntax swift-syntax-source.swift result json.
It estimates in the specifity range in gist.
I guess that expected order of layout.
But I got
So, `Elilpsis=,` and `TrailingComma=null` are wrong result.
The text was updated successfully, but these errors were encountered: