@@ -62,28 +62,28 @@ struct AbsoluteSyntaxInfo {
62
62
public struct SyntaxIndexInTree : Comparable , Hashable {
63
63
let indexInTree : UInt32
64
64
65
- static var zero : SyntaxIndexInTree = SyntaxIndexInTree ( indexInTree : 0 )
65
+ static var zero : SyntaxIndexInTree = SyntaxIndexInTree ( 0 )
66
66
67
67
/// Assuming that this index points to the start of ``Raw``, so that it points
68
68
/// to the next sibling of ``Raw``.
69
69
func advancedBy( _ raw: RawSyntax ? ) -> SyntaxIndexInTree {
70
70
let newIndexInTree = self . indexInTree + UInt32( truncatingIfNeeded: raw? . totalNodes ?? 0 )
71
- return . init( indexInTree : newIndexInTree)
71
+ return . init( newIndexInTree)
72
72
}
73
73
74
74
/// Assuming that this index points to the next sibling of ``Raw``, reverse it
75
75
/// so that it points to the start of ``Raw``.
76
76
func reversedBy( _ raw: RawSyntax ? ) -> SyntaxIndexInTree {
77
77
let newIndexInTree = self . indexInTree - UInt32( truncatingIfNeeded: raw? . totalNodes ?? 0 )
78
- return . init( indexInTree : newIndexInTree)
78
+ return . init( newIndexInTree)
79
79
}
80
80
81
81
func advancedToFirstChild( ) -> SyntaxIndexInTree {
82
82
let newIndexInTree = self . indexInTree + 1
83
- return . init( indexInTree : newIndexInTree)
83
+ return . init( newIndexInTree)
84
84
}
85
85
86
- init ( indexInTree: UInt32 ) {
86
+ init ( _ indexInTree: UInt32 ) {
87
87
self . indexInTree = indexInTree
88
88
}
89
89
0 commit comments