@@ -31,12 +31,6 @@ struct AbsoluteSyntaxPosition {
31
31
return . init( offset: self . offset, indexInParent: 0 )
32
32
}
33
33
34
- func advancedToEndOfChildren( _ raw: RawSyntax ) -> AbsoluteSyntaxPosition {
35
- let newOffset = self . offset + UInt32( truncatingIfNeeded: raw. totalLength. utf8Length)
36
- let newIndexInParent = UInt32 ( truncatingIfNeeded: raw. numberOfChildren)
37
- return . init( offset: newOffset, indexInParent: newIndexInParent)
38
- }
39
-
40
34
static var forRoot : AbsoluteSyntaxPosition {
41
35
return . init( offset: 0 , indexInParent: 0 )
42
36
}
@@ -70,12 +64,6 @@ struct AbsoluteSyntaxInfo {
70
64
return . init( position: newPosition, nodeId: newNodeId)
71
65
}
72
66
73
- func advancedToEndOfChildren( _ raw: RawSyntax ) -> AbsoluteSyntaxInfo {
74
- let newPosition = position. advancedToEndOfChildren ( raw)
75
- let newNodeId = nodeId. advancedToEndOfChildren ( raw)
76
- return . init( position: newPosition, nodeId: newNodeId)
77
- }
78
-
79
67
static var forRoot : AbsoluteSyntaxInfo {
80
68
return . init( position: . forRoot, nodeId: . newRoot( ) )
81
69
}
@@ -104,12 +92,6 @@ struct SyntaxIndexInTree: Hashable {
104
92
return . init( indexInTree: newIndexInTree)
105
93
}
106
94
107
- func advancedToEndOfChildren( _ raw: RawSyntax ) -> SyntaxIndexInTree {
108
- let newIndexInTree = self . indexInTree +
109
- UInt32( truncatingIfNeeded: raw. totalNodes)
110
- return . init( indexInTree: newIndexInTree)
111
- }
112
-
113
95
init ( indexInTree: UInt32 ) {
114
96
self . indexInTree = indexInTree
115
97
}
@@ -137,11 +119,6 @@ public struct SyntaxIdentifier: Hashable {
137
119
return . init( rootId: self . rootId, indexInTree: newIndexInTree)
138
120
}
139
121
140
- func advancedToEndOfChildren( _ raw: RawSyntax ) -> SyntaxIdentifier {
141
- let newIndexInTree = self . indexInTree. advancedToEndOfChildren ( raw)
142
- return . init( rootId: self . rootId, indexInTree: newIndexInTree)
143
- }
144
-
145
122
static func newRoot( ) -> SyntaxIdentifier {
146
123
return . init( rootId: UInt32 ( truncatingIfNeeded: AtomicCounter . next ( ) ) ,
147
124
indexInTree: . zero)
0 commit comments