Skip to content

Commit 2db4259

Browse files
committed
Mark closures of CheckedIndex.forEach* as non-escaping
With swiftlang/indexstore-db#198, they no longer need to be marked as escpaing.
1 parent 98718d4 commit 2db4259

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SemanticIndex/CheckedIndex.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public final class CheckedIndex {
6464
public func forEachSymbolOccurrence(
6565
byUSR usr: String,
6666
roles: SymbolRole,
67-
_ body: @escaping (SymbolOccurrence) -> Bool
67+
_ body: (SymbolOccurrence) -> Bool
6868
) -> Bool {
6969
index.forEachSymbolOccurrence(byUSR: usr, roles: roles) { occurrence in
7070
guard self.checker.isUpToDate(occurrence.location) else {
@@ -88,7 +88,7 @@ public final class CheckedIndex {
8888
anchorEnd: Bool,
8989
subsequence: Bool,
9090
ignoreCase: Bool,
91-
body: @escaping (SymbolOccurrence) -> Bool
91+
body: (SymbolOccurrence) -> Bool
9292
) -> Bool {
9393
index.forEachCanonicalSymbolOccurrence(
9494
containing: pattern,

0 commit comments

Comments
 (0)