Skip to content

Commit 2a9caa7

Browse files
committed
minor changes
1 parent a9efd4c commit 2a9caa7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Sources/SwiftParserDiagnostics/MissingNodesError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func nodesDescription<SyntaxType: SyntaxProtocol>(_ nodes: [SyntaxType], format:
111111
/// Same as `nodesDescription` but if a common ancestor was used to describe `missingNodes`, also return that `commonAncestor`
112112
func nodesDescriptionAndCommonParent<SyntaxType: SyntaxProtocol>(_ nodes: [SyntaxType], format: Bool) -> (commonAncestor: Syntax?, description: String) {
113113
let missingSyntaxNodes = nodes.map(Syntax.init)
114-
114+
115115
let isOnlyTokenWithNonMissingText: Bool
116116
if let token = nodes.only?.as(TokenSyntax.self) {
117117
isOnlyTokenWithNonMissingText = token.text != ""

Sources/SwiftParserDiagnostics/ParserDiagnosticMessages.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,5 +614,6 @@ public struct ReplaceTokensFixIt: ParserFixIt {
614614
public let replacements: [TokenSyntax]
615615

616616
public var message: String {
617-
"replace \(nodesDescription(replaceTokens, format: false)) with \(nodesDescription(replacements, format: false))" }
617+
"replace \(nodesDescription(replaceTokens, format: false)) with \(nodesDescription(replacements, format: false))"
618+
}
618619
}

0 commit comments

Comments
 (0)