Skip to content

Commit 05d9d63

Browse files
authored
Merge pull request #1393 from ahoppen/index-foreach-non-escaping
Mark closures of `CheckedIndex.forEach*` as non-escaping
2 parents 9bddc7f + 2db4259 commit 05d9d63

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)