File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ private class Indenter: SyntaxRewriter {
38
38
self . shouldIndent = indentFirstLine
39
39
}
40
40
41
- private func indentIfNeeded ( ) -> [ TriviaPiece ] {
41
+ private func indentationIfNeeded ( ) -> [ TriviaPiece ] {
42
42
if shouldIndent {
43
43
shouldIndent = false
44
44
return indentation. pieces
@@ -60,7 +60,7 @@ private class Indenter: SyntaxRewriter {
60
60
result. reserveCapacity ( trivia. count)
61
61
62
62
for piece in trivia. pieces {
63
- result. append ( contentsOf: indentIfNeeded ( ) )
63
+ result. append ( contentsOf: indentationIfNeeded ( ) )
64
64
switch piece {
65
65
case . newlines, . carriageReturns, . carriageReturnLineFeeds:
66
66
shouldIndent = true
@@ -76,7 +76,7 @@ private class Indenter: SyntaxRewriter {
76
76
result. append ( piece)
77
77
}
78
78
}
79
- result. append ( contentsOf: indentIfNeeded ( ) )
79
+ result. append ( contentsOf: indentationIfNeeded ( ) )
80
80
return Trivia ( pieces: result)
81
81
}
82
82
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ extension Trivia {
30
30
}
31
31
32
32
/// Adds a given amount of indentation after every newline in a syntax tree.
33
- @available ( * , deprecated, message: " Use 'indented(by:)' from SwiftBasicFormat instead " )
33
+ @available ( * , deprecated, message: " Use 'SyntaxProtocol. indented(by:)' from SwiftBasicFormat instead " )
34
34
public class Indenter : SyntaxRewriter {
35
35
let indentation : Trivia
36
36
You can’t perform that action at this time.
0 commit comments