@@ -42,8 +42,8 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
42
42
!node. documentation. isEmpty
43
43
? node. documentation
44
44
: """
45
- /// ` \( node. kind. syntaxType) ` represents a collection of one or more
46
- /// ` \( node. collectionElementType. syntaxBaseName) ` nodes. \( node. kind. syntaxType) behaves
45
+ /// `` \( node. kind. syntaxType) ` ` represents a collection of one or more
46
+ /// `` \( node. collectionElementType. syntaxBaseName) `` nodes. `` \( node. kind. syntaxType) `` behaves
47
47
/// as a regular Swift collection, and has accessors that return new
48
48
/// versions of the collection with different children.
49
49
"""
@@ -187,13 +187,12 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
187
187
188
188
DeclSyntax (
189
189
"""
190
- /// Creates a new ` \( node. kind. syntaxType) ` by replacing the underlying layout with
190
+ /// Creates a new `` \( node. kind. syntaxType) ` ` by replacing the underlying layout with
191
191
/// a different set of raw syntax nodes.
192
192
///
193
193
/// - Parameter layout: The new list of raw syntax nodes underlying this
194
194
/// collection.
195
- /// - Returns: A new ` \( node. kind. syntaxType) ` with the new layout underlying it.
196
- internal func replacingLayout(_ layout: [RawSyntax?]) -> \( node. kind. syntaxType) {
195
+ /// - Returns: A new `` \( node. kind. syntaxType) `` with the new layout underlying it.
197
196
let arena = SyntaxArena()
198
197
let newRaw = layoutView.replacingLayout(with: layout, arena: arena)
199
198
let newData = data.replacingSelf(newRaw, arena: arena)
@@ -204,11 +203,11 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
204
203
205
204
DeclSyntax (
206
205
"""
207
- /// Creates a new ` \( node. kind. syntaxType) ` by appending the provided syntax element
206
+ /// Creates a new `` \( node. kind. syntaxType) ` ` by appending the provided syntax element
208
207
/// to the children.
209
208
///
210
209
/// - Parameter syntax: The element to append.
211
- /// - Returns: A new ` \( node. kind. syntaxType) ` with that element appended to the end.
210
+ /// - Returns: A new `` \( node. kind. syntaxType) ` ` with that element appended to the end.
212
211
public func appending(_ syntax: Element) -> \( node. kind. syntaxType) {
213
212
var newLayout = layoutView.formLayoutArray()
214
213
newLayout.append(syntax.raw)
@@ -219,11 +218,11 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
219
218
220
219
DeclSyntax (
221
220
"""
222
- /// Creates a new ` \( node. kind. syntaxType) ` by prepending the provided syntax element
221
+ /// Creates a new `` \( node. kind. syntaxType) ` ` by prepending the provided syntax element
223
222
/// to the children.
224
223
///
225
224
/// - Parameter syntax: The element to prepend.
226
- /// - Returns: A new ` \( node. kind. syntaxType) ` with that element prepended to the
225
+ /// - Returns: A new `` \( node. kind. syntaxType) ` ` with that element prepended to the
227
226
/// beginning.
228
227
public func prepending(_ syntax: Element) -> \( node. kind. syntaxType) {
229
228
return inserting(syntax, at: 0)
@@ -233,14 +232,14 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
233
232
234
233
DeclSyntax (
235
234
"""
236
- /// Creates a new ` \( node. kind. syntaxType) ` by inserting the provided syntax element
235
+ /// Creates a new `` \( node. kind. syntaxType) ` ` by inserting the provided syntax element
237
236
/// at the provided index in the children.
238
237
///
239
238
/// - Parameters:
240
239
/// - syntax: The element to insert.
241
240
/// - index: The index at which to insert the element in the collection.
242
241
///
243
- /// - Returns: A new ` \( node. kind. syntaxType) ` with that element appended to the end.
242
+ /// - Returns: A new `` \( node. kind. syntaxType) ` ` with that element appended to the end.
244
243
public func inserting(_ syntax: Element, at index: Int) -> \( node. kind. syntaxType) {
245
244
var newLayout = layoutView.formLayoutArray()
246
245
/// Make sure the index is a valid insertion index (0 to 1 past the end)
@@ -254,14 +253,14 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
254
253
255
254
DeclSyntax (
256
255
"""
257
- /// Creates a new ` \( node. kind. syntaxType) ` by replacing the syntax element
256
+ /// Creates a new `` \( node. kind. syntaxType) ` ` by replacing the syntax element
258
257
/// at the provided index.
259
258
///
260
259
/// - Parameters:
261
260
/// - index: The index at which to replace the element in the collection.
262
261
/// - syntax: The element to replace with.
263
262
///
264
- /// - Returns: A new ` \( node. kind. syntaxType) ` with the new element at the provided index.
263
+ /// - Returns: A new `` \( node. kind. syntaxType) ` ` with the new element at the provided index.
265
264
public func replacing(childAt index: Int, with syntax: Element) -> \( node. kind. syntaxType) {
266
265
var newLayout = layoutView.formLayoutArray()
267
266
/// Make sure the index is a valid index for replacing
@@ -275,11 +274,11 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
275
274
276
275
DeclSyntax (
277
276
"""
278
- /// Creates a new ` \( node. kind. syntaxType) ` by removing the syntax element at the
277
+ /// Creates a new `` \( node. kind. syntaxType) ` ` by removing the syntax element at the
279
278
/// provided index.
280
279
///
281
280
/// - Parameter index: The index of the element to remove from the collection.
282
- /// - Returns: A new ` \( node. kind. syntaxType) ` with the element at the provided index
281
+ /// - Returns: A new `` \( node. kind. syntaxType) ` ` with the element at the provided index
283
282
/// removed.
284
283
public func removing(childAt index: Int) -> \( node. kind. syntaxType) {
285
284
var newLayout = layoutView.formLayoutArray()
@@ -291,9 +290,9 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
291
290
292
291
DeclSyntax (
293
292
"""
294
- /// Creates a new ` \( node. kind. syntaxType) ` by removing the first element.
293
+ /// Creates a new `` \( node. kind. syntaxType) ` ` by removing the first element.
295
294
///
296
- /// - Returns: A new ` \( node. kind. syntaxType) ` with the first element removed.
295
+ /// - Returns: A new `` \( node. kind. syntaxType) ` ` with the first element removed.
297
296
public func removingFirst() -> \( node. kind. syntaxType) {
298
297
var newLayout = layoutView.formLayoutArray()
299
298
newLayout.removeFirst()
@@ -304,9 +303,9 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
304
303
305
304
DeclSyntax (
306
305
"""
307
- /// Creates a new ` \( node. kind. syntaxType) ` by removing the last element.
306
+ /// Creates a new `` \( node. kind. syntaxType) ` ` by removing the last element.
308
307
///
309
- /// - Returns: A new ` \( node. kind. syntaxType) ` with the last element removed.
308
+ /// - Returns: A new `` \( node. kind. syntaxType) ` ` with the last element removed.
310
309
public func removingLast() -> \( node. kind. syntaxType) {
311
310
var newLayout = layoutView.formLayoutArray()
312
311
newLayout.removeLast()
@@ -318,7 +317,7 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
318
317
319
318
try ! ExtensionDeclSyntax (
320
319
"""
321
- /// Conformance for ` \( node. kind. syntaxType) ` to the `BidirectionalCollection` protocol.
320
+ /// Conformance for `` \( node. kind. syntaxType) ` ` to the `BidirectionalCollection` protocol.
322
321
extension \( node. kind. syntaxType) : BidirectionalCollection
323
322
"""
324
323
) {
0 commit comments