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 a8e4b65 commit dabc5eaCopy full SHA for dabc5ea
Sources/SwiftBasicFormat/Indenter.swift
@@ -17,9 +17,10 @@ extension SyntaxProtocol {
17
/// - Parameter indentFirstLine: Whether the first token of this node should be indented.
18
/// Pass `true` if you know that this node will be placed at the beginning of a line, even if its
19
/// current leading trivia does not start with a newline (such as at the very start of a file).
20
- public func indented(by indentation: Trivia, indentFirstLine: Bool = false) -> Syntax {
+ public func indented(by indentation: Trivia, indentFirstLine: Bool = false) -> Self {
21
Indenter(indentation: indentation, indentFirstLine: indentFirstLine)
22
.rewrite(self)
23
+ .cast(Self.self)
24
}
25
26
0 commit comments