Skip to content

Commit 3a4cc67

Browse files
authored
Merge pull request #1968 from ahoppen/ahoppen/indentation-typo
Fix typo `Indentaiton` -> `Indentation`
2 parents 1086c5e + 49d946a commit 3a4cc67

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/SwiftBasicFormat/BasicFormat.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ open class BasicFormat: SyntaxRewriter {
160160
/// print(1)
161161
/// }
162162
/// ```
163-
open var inferInitialTokenIndentaiton: Bool { true }
163+
open var inferInitialTokenIndentation: Bool { true }
164164

165165
/// Whether a leading newline on `token` should be added.
166166
open func requiresIndent(_ node: some SyntaxProtocol) -> Bool {
@@ -461,7 +461,7 @@ open class BasicFormat: SyntaxRewriter {
461461
anchorPoints[token] = currentIndentationLevel
462462
}
463463

464-
if inferInitialTokenIndentaiton
464+
if inferInitialTokenIndentation
465465
&& isInitialToken
466466
&& token.presence == .present
467467
{

Sources/SwiftParserDiagnostics/MissingNodesError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fileprivate func findCommonAncestor(_ nodes: [Syntax]) -> Syntax? {
2222
}
2323

2424
class NoNewlinesFormat: BasicFormat {
25-
override var inferInitialTokenIndentaiton: Bool { false }
25+
override var inferInitialTokenIndentation: Bool { false }
2626

2727
override func requiresNewline(between first: TokenSyntax?, and second: TokenSyntax?) -> Bool {
2828
return false

0 commit comments

Comments
 (0)