We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.sourceAccurate
.all
nextTokenStartsWithNewline
1 parent d5be4e5 commit 35178f6Copy full SHA for 35178f6
CodeGeneration/Sources/Utils/CodeGenerationFormat.swift
@@ -137,7 +137,7 @@ public class CodeGenerationFormat: BasicFormat {
137
}
138
decreaseIndentationLevel()
139
if let lastChild = formattedChildren.last {
140
- let nextTokenStartsWithNewline = lastChild.nextToken(viewMode: .all)?.leadingTrivia.first?.isNewline ?? false
+ let nextTokenStartsWithNewline = lastChild.nextToken(viewMode: .sourceAccurate)?.leadingTrivia.first?.isNewline ?? false
141
if !nextTokenStartsWithNewline {
142
formattedChildren[formattedChildren.count - 1] = lastChild.with(
143
\.trailingTrivia,
0 commit comments