We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05f1b73 commit 60f60ecCopy full SHA for 60f60ec
Sources/SwiftSyntaxBuilder/Indenter.swift
@@ -17,7 +17,7 @@ import SwiftSyntax
17
#endif
18
19
extension Trivia {
20
- func indented(indentation: Trivia) -> Trivia {
+ fileprivate func indented(indentation: Trivia) -> Trivia {
21
let mappedPieces = self.flatMap { (piece) -> [TriviaPiece] in
22
if piece.isNewline {
23
return [piece] + indentation.pieces
@@ -30,6 +30,7 @@ extension Trivia {
30
}
31
32
/// Adds a given amount of indentation after every newline in a syntax tree.
33
+@available(*, deprecated, message: "Use 'indented(by:)' from SwiftBasicFormat instead")
34
public class Indenter: SyntaxRewriter {
35
let indentation: Trivia
36
0 commit comments