Skip to content

Commit cfbec20

Browse files
committed
comment tweak
1 parent 80c0331 commit cfbec20

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Sources/SwiftSyntax/RawSyntax.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,17 @@ internal struct RawSyntaxData {
2424
/// Token with lazy trivia parsing.
2525
///
2626
/// The RawSyntax's `arena` must have a valid trivia parsing function to
27-
/// lazily materialize the leading/trailing trivia.
27+
/// lazily materialize the leading/trailing trivia pieces.
2828
struct ParsedToken {
2929
var tokenKind: RawTokenKind
30+
31+
/// Whole of this token including leading/trailing trivia.
3032
var wholeText: SyntaxText
33+
34+
/// Range of the actual token’s text.
35+
///
36+
/// Text in `wholeText` before `textRange.lowerBound` is leading trivia and
37+
/// after `textRange.upperBound` is trailing trivia.
3138
var textRange: Range<SyntaxText.Index>
3239
}
3340

0 commit comments

Comments
 (0)