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 {
3838 self . shouldIndent = indentFirstLine
3939 }
4040
41- private func indentIfNeeded ( ) -> [ TriviaPiece ] {
41+ private func indentationIfNeeded ( ) -> [ TriviaPiece ] {
4242 if shouldIndent {
4343 shouldIndent = false
4444 return indentation. pieces
@@ -60,7 +60,7 @@ private class Indenter: SyntaxRewriter {
6060 result. reserveCapacity ( trivia. count)
6161
6262 for piece in trivia. pieces {
63- result. append ( contentsOf: indentIfNeeded ( ) )
63+ result. append ( contentsOf: indentationIfNeeded ( ) )
6464 switch piece {
6565 case . newlines, . carriageReturns, . carriageReturnLineFeeds:
6666 shouldIndent = true
@@ -76,7 +76,7 @@ private class Indenter: SyntaxRewriter {
7676 result. append ( piece)
7777 }
7878 }
79- result. append ( contentsOf: indentIfNeeded ( ) )
79+ result. append ( contentsOf: indentationIfNeeded ( ) )
8080 return Trivia ( pieces: result)
8181 }
8282
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ extension Trivia {
3030}
3131
3232/// 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 " )
3434public class Indenter : SyntaxRewriter {
3535 let indentation : Trivia
3636
You can’t perform that action at this time.
0 commit comments