swiftlang / swiftlang/swift-syntax
For `SyntaxCollection`s with elements that conform to `HasTrailingComma` add `append` function that ensures the previous element has a trailing comma
Open
enhancement
- Dominant language
- Swift
- Stars
- 3.7k
- Forks
- 553
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 16
Description
Create an extension of `SyntaxCollection` if `Element: HasTrailingComma` that adds `append` methods, which make sure that any two elements are separated by a comma. That would be useful to e.g. add a new element to an `ArrayExprSyntax`
Contributor guide
Assessment
This issue has not been assessed yet.