swiftlang / swiftlang/swift-syntax
Please add a `TriviaPiece.commentValue` property
Open
enhancement
good first issue
- Dominant language
- Swift
- Stars
- 3.7k
- Forks
- 553
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 16
Description
### Description
There are four kinds of comment tracked by `TriviaPiece`. It'd be a nice convenience to be able to extract the string values of those comments. May I suggest something like:
```swift
extension TriviaPiece {
public var commentValue: String? { get }
}
```
Contributor guide
Assessment
This issue has not been assessed yet.