@@ -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,12 +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.
195
+ /// - Returns: A new `` \( node. kind. syntaxType) ` ` with the new layout underlying it.
196
196
internal func replacingLayout(_ layout: [RawSyntax?]) -> \( node. kind. syntaxType) {
197
197
let arena = SyntaxArena()
198
198
let newRaw = layoutView.replacingLayout(with: layout, arena: arena)
@@ -204,11 +204,11 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
204
204
205
205
DeclSyntax (
206
206
"""
207
- /// Creates a new ` \( node. kind. syntaxType) ` by appending the provided syntax element
207
+ /// Creates a new `` \( node. kind. syntaxType) ` ` by appending the provided syntax element
208
208
/// to the children.
209
209
///
210
210
/// - Parameter syntax: The element to append.
211
- /// - Returns: A new ` \( node. kind. syntaxType) ` with that element appended to the end.
211
+ /// - Returns: A new `` \( node. kind. syntaxType) ` ` with that element appended to the end.
212
212
public func appending(_ syntax: Element) -> \( node. kind. syntaxType) {
213
213
var newLayout = layoutView.formLayoutArray()
214
214
newLayout.append(syntax.raw)
@@ -219,11 +219,11 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
219
219
220
220
DeclSyntax (
221
221
"""
222
- /// Creates a new ` \( node. kind. syntaxType) ` by prepending the provided syntax element
222
+ /// Creates a new `` \( node. kind. syntaxType) ` ` by prepending the provided syntax element
223
223
/// to the children.
224
224
///
225
225
/// - Parameter syntax: The element to prepend.
226
- /// - Returns: A new ` \( node. kind. syntaxType) ` with that element prepended to the
226
+ /// - Returns: A new `` \( node. kind. syntaxType) ` ` with that element prepended to the
227
227
/// beginning.
228
228
public func prepending(_ syntax: Element) -> \( node. kind. syntaxType) {
229
229
return inserting(syntax, at: 0)
@@ -233,14 +233,14 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
233
233
234
234
DeclSyntax (
235
235
"""
236
- /// Creates a new ` \( node. kind. syntaxType) ` by inserting the provided syntax element
236
+ /// Creates a new `` \( node. kind. syntaxType) ` ` by inserting the provided syntax element
237
237
/// at the provided index in the children.
238
238
///
239
239
/// - Parameters:
240
240
/// - syntax: The element to insert.
241
241
/// - index: The index at which to insert the element in the collection.
242
242
///
243
- /// - Returns: A new ` \( node. kind. syntaxType) ` with that element appended to the end.
243
+ /// - Returns: A new `` \( node. kind. syntaxType) ` ` with that element appended to the end.
244
244
public func inserting(_ syntax: Element, at index: Int) -> \( node. kind. syntaxType) {
245
245
var newLayout = layoutView.formLayoutArray()
246
246
/// Make sure the index is a valid insertion index (0 to 1 past the end)
@@ -254,14 +254,14 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
254
254
255
255
DeclSyntax (
256
256
"""
257
- /// Creates a new ` \( node. kind. syntaxType) ` by replacing the syntax element
257
+ /// Creates a new `` \( node. kind. syntaxType) ` ` by replacing the syntax element
258
258
/// at the provided index.
259
259
///
260
260
/// - Parameters:
261
261
/// - index: The index at which to replace the element in the collection.
262
262
/// - syntax: The element to replace with.
263
263
///
264
- /// - Returns: A new ` \( node. kind. syntaxType) ` with the new element at the provided index.
264
+ /// - Returns: A new `` \( node. kind. syntaxType) ` ` with the new element at the provided index.
265
265
public func replacing(childAt index: Int, with syntax: Element) -> \( node. kind. syntaxType) {
266
266
var newLayout = layoutView.formLayoutArray()
267
267
/// Make sure the index is a valid index for replacing
@@ -275,11 +275,11 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
275
275
276
276
DeclSyntax (
277
277
"""
278
- /// Creates a new ` \( node. kind. syntaxType) ` by removing the syntax element at the
278
+ /// Creates a new `` \( node. kind. syntaxType) ` ` by removing the syntax element at the
279
279
/// provided index.
280
280
///
281
281
/// - 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
282
+ /// - Returns: A new `` \( node. kind. syntaxType) ` ` with the element at the provided index
283
283
/// removed.
284
284
public func removing(childAt index: Int) -> \( node. kind. syntaxType) {
285
285
var newLayout = layoutView.formLayoutArray()
@@ -291,9 +291,9 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
291
291
292
292
DeclSyntax (
293
293
"""
294
- /// Creates a new ` \( node. kind. syntaxType) ` by removing the first element.
294
+ /// Creates a new `` \( node. kind. syntaxType) ` ` by removing the first element.
295
295
///
296
- /// - Returns: A new ` \( node. kind. syntaxType) ` with the first element removed.
296
+ /// - Returns: A new `` \( node. kind. syntaxType) ` ` with the first element removed.
297
297
public func removingFirst() -> \( node. kind. syntaxType) {
298
298
var newLayout = layoutView.formLayoutArray()
299
299
newLayout.removeFirst()
@@ -304,9 +304,9 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
304
304
305
305
DeclSyntax (
306
306
"""
307
- /// Creates a new ` \( node. kind. syntaxType) ` by removing the last element.
307
+ /// Creates a new `` \( node. kind. syntaxType) ` ` by removing the last element.
308
308
///
309
- /// - Returns: A new ` \( node. kind. syntaxType) ` with the last element removed.
309
+ /// - Returns: A new `` \( node. kind. syntaxType) ` ` with the last element removed.
310
310
public func removingLast() -> \( node. kind. syntaxType) {
311
311
var newLayout = layoutView.formLayoutArray()
312
312
newLayout.removeLast()
@@ -318,7 +318,7 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
318
318
319
319
try ! ExtensionDeclSyntax (
320
320
"""
321
- /// Conformance for ` \( node. kind. syntaxType) ` to the `BidirectionalCollection` protocol.
321
+ /// Conformance for `` \( node. kind. syntaxType) ` ` to the `BidirectionalCollection` protocol.
322
322
extension \( node. kind. syntaxType) : BidirectionalCollection
323
323
"""
324
324
) {
0 commit comments