@@ -318,8 +318,8 @@ private final class _ContextInserter<C, M>: SyntaxRewriter where C: MacroExpansi
318
318
override func visit( _ node: InfixOperatorExprSyntax ) -> ExprSyntax {
319
319
_rewrite (
320
320
node
321
- . with ( \. leftOperand, visit ( node. leftOperand) )
322
- . with ( \. rightOperand, visit ( node. rightOperand) ) ,
321
+ . with ( \. leftOperand, visit ( node. leftOperand) . trimmed )
322
+ . with ( \. rightOperand, visit ( node. rightOperand) . trimmed ) ,
323
323
originalWas: node
324
324
)
325
325
}
@@ -347,7 +347,7 @@ private final class _ContextInserter<C, M>: SyntaxRewriter where C: MacroExpansi
347
347
name: . identifier( " __ \( isAsKeyword) " )
348
348
)
349
349
) {
350
- LabeledExprSyntax ( expression: visit ( valueExpr) )
350
+ LabeledExprSyntax ( expression: visit ( valueExpr) . trimmed )
351
351
LabeledExprSyntax (
352
352
expression: _rewrite (
353
353
MemberAccessExprSyntax (
@@ -356,7 +356,7 @@ private final class _ContextInserter<C, M>: SyntaxRewriter where C: MacroExpansi
356
356
} ,
357
357
declName: DeclReferenceExprSyntax ( baseName: . keyword( . self ) )
358
358
) ,
359
- originalWas: Syntax ( type)
359
+ originalWas: type
360
360
)
361
361
)
362
362
LabeledExprSyntax ( expression: type. expressionID ( rootedAt: effectiveRootNode) )
@@ -431,7 +431,7 @@ private final class _ContextInserter<C, M>: SyntaxRewriter where C: MacroExpansi
431
431
node. with (
432
432
\. elements, ArrayElementListSyntax {
433
433
for element in node. elements {
434
- ArrayElementSyntax ( expression: visit ( element. expression) )
434
+ ArrayElementSyntax ( expression: visit ( element. expression) . trimmed )
435
435
}
436
436
}
437
437
) ,
@@ -448,7 +448,7 @@ private final class _ContextInserter<C, M>: SyntaxRewriter where C: MacroExpansi
448
448
\. content, . elements(
449
449
DictionaryElementListSyntax {
450
450
for element in elements {
451
- DictionaryElementSyntax ( key: visit ( element. key) , value: visit ( element. value) )
451
+ DictionaryElementSyntax ( key: visit ( element. key) . trimmed , value: visit ( element. value) . trimmed )
452
452
}
453
453
}
454
454
)
0 commit comments