swift-syntax icon indicating copy to clipboard operation
swift-syntax copied to clipboard

Please add a `TriviaPiece.commentValue` property

Open grynspan opened this issue 1 year ago • 16 comments

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:

extension TriviaPiece {
  public var commentValue: String? { get }
}

grynspan avatar Jul 07 '23 19:07 grynspan