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