@@ -557,12 +557,12 @@ public struct TokenSyntax: _SyntaxBase, Hashable {
557
557
558
558
/// The leading trivia (spaces, newlines, etc.) associated with this token.
559
559
public var leadingTrivia : Trivia {
560
- return raw. formLeadingTrivia ( ) !
560
+ return raw. formTokenLeadingTrivia ( ) !
561
561
}
562
562
563
563
/// The trailing trivia (spaces, newlines, etc.) associated with this token.
564
564
public var trailingTrivia : Trivia {
565
- return raw. formTrailingTrivia ( ) !
565
+ return raw. formTokenTrailingTrivia ( ) !
566
566
}
567
567
568
568
/// The kind of token this node represents.
@@ -573,17 +573,17 @@ public struct TokenSyntax: _SyntaxBase, Hashable {
573
573
/// The length this node takes up spelled out in the source, excluding its
574
574
/// leading or trailing trivia.
575
575
public var contentLength : SourceLength {
576
- return raw. contentLength
576
+ return raw. tokenContentLength
577
577
}
578
578
579
579
/// The length this node's leading trivia takes up spelled out in source.
580
580
public var leadingTriviaLength : SourceLength {
581
- return raw. leadingTriviaLength
581
+ return raw. tokenLeadingTriviaLength
582
582
}
583
583
584
584
/// The length this node's trailing trivia takes up spelled out in source.
585
585
public var trailingTriviaLength : SourceLength {
586
- return raw. trailingTriviaLength
586
+ return raw. tokenTrailingTriviaLength
587
587
}
588
588
589
589
/// The length of this node including all of its trivia.
0 commit comments