We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 061301b commit 21dc6f2Copy full SHA for 21dc6f2
Sources/SwiftSyntax/WeakLookupTable.swift
@@ -207,7 +207,7 @@ class WeakLookupTable<Element: Identifiable & AnyObject> {
207
208
/// Get a object with specified id. Returns 'nil' if the object hasn't been
209
/// insert()-ed or it's already been freed.
210
- public subscript(id: Element.Identifier) -> Element? {
+ subscript(id: Element.Identifier) -> Element? {
211
// Since we don't fill the bucket when the object is freed (because we don't
212
// know), we can't stop iteration at a hole. So in the worst case (i.e. if
213
// the object doesn't exist in the table), full linear search is needed.
0 commit comments