mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-10 05:39:12 +00:00
Rename index
to binding_id
in a few iterators (#4594)
This commit is contained in:
parent
6c3724ab98
commit
74effb40b9
9 changed files with 59 additions and 44 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue