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
#1,989 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.