@@ -273,11 +273,13 @@ struct SyntaxData {
273
273
self . init ( absoluteRaw. raw, parent: parent. data, absoluteInfo: absoluteRaw. info)
274
274
}
275
275
276
- /// Creates a `SyntaxData` for a root raw node.
276
+ /// Creates a `` SyntaxData` ` for a root raw node.
277
277
///
278
- /// `arena` must be the arena in which `raw` is allocated. It is passed to
279
- /// make sure the arena doesn’t get de-allocated before the ``SyntaxData`` has
280
- /// a chance to retain it.
278
+ /// - Parameters:
279
+ /// - raw: The raw node that will be the root of the the tree
280
+ /// - rawNodeArena: The arena in which `raw` is allocated. It is passed to
281
+ /// make sure the arena doesn’t get de-allocated before the ``SyntaxData``
282
+ /// has a chance to retain it.
281
283
static func forRoot( _ raw: RawSyntax , rawNodeArena: SyntaxArena ) -> SyntaxData {
282
284
precondition ( rawNodeArena === raw. arena)
283
285
return SyntaxData ( raw, info: . root( . init( arena: rawNodeArena) ) )
@@ -307,7 +309,7 @@ struct SyntaxData {
307
309
/// - Parameters:
308
310
/// - newRaw: The node that should replace `self`
309
311
/// - rawNodeArena: The arena in which `newRaw` resides
310
- /// - arena : The arena in which new nodes should be allocated
312
+ /// - allocationArena : The arena in which new nodes should be allocated
311
313
/// - Returns: A syntax tree with all parents where this node has been
312
314
/// replaced by `newRaw`
313
315
func replacingSelf( _ newRaw: RawSyntax , rawNodeArena: SyntaxArena , allocationArena: SyntaxArena ) -> SyntaxData {
0 commit comments