Skip to content

Commit 0a87bfd

Browse files
committed
FixItApplier: Accept syntax tree generically
1 parent 3a060a7 commit 0a87bfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftIDEUtils/FixItApplier.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public enum FixItApplier {
3232
public static func applyFixes(
3333
from diagnostics: [Diagnostic],
3434
filterByMessages messages: [String]?,
35-
to tree: any SyntaxProtocol
35+
to tree: some SyntaxProtocol
3636
) -> String {
3737
let messages = messages ?? diagnostics.compactMap { $0.fixIts.first?.message.message }
3838

@@ -54,7 +54,7 @@ public enum FixItApplier {
5454
/// - Returns: A `String` representation of the modified syntax tree after applying the edits.
5555
public static func apply(
5656
edits: [SourceEdit],
57-
to tree: any SyntaxProtocol
57+
to tree: some SyntaxProtocol
5858
) -> String {
5959
var edits = edits
6060
var source = tree.description

0 commit comments

Comments
 (0)