mirror of
https://github.com/astral-sh/ruff
synced 2026-01-08 15:14:19 -05:00
Rename index to binding_id in a few iterators (#4594)
This commit is contained in:
@@ -105,7 +105,7 @@ impl<'a> SemanticModel<'a> {
|
||||
pub fn find_binding(&self, member: &str) -> Option<&Binding> {
|
||||
self.scopes()
|
||||
.find_map(|scope| scope.get(member))
|
||||
.map(|index| &self.bindings[*index])
|
||||
.map(|binding_id| &self.bindings[*binding_id])
|
||||
}
|
||||
|
||||
/// Return `true` if `member` is bound as a builtin.
|
||||
|
||||
Reference in New Issue
Block a user