mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
Change "indexes" to "indices" in various contexts (#3856)
This commit is contained in:
parent
08e5b3fa61
commit
924bebbb4a
6 changed files with 41 additions and 41 deletions
|
@ -23,14 +23,14 @@ use crate::visibility::{module_visibility, Modifier, VisibleScope};
|
|||
pub struct Context<'a> {
|
||||
pub typing_modules: &'a [String],
|
||||
pub module_path: Option<Vec<String>>,
|
||||
// Retain all scopes and parent nodes, along with a stack of indexes to track which are active
|
||||
// Retain all scopes and parent nodes, along with a stack of indices to track which are active
|
||||
// at various points in time.
|
||||
pub parents: Vec<RefEquality<'a, Stmt>>,
|
||||
pub depths: FxHashMap<RefEquality<'a, Stmt>, usize>,
|
||||
pub child_to_parent: FxHashMap<RefEquality<'a, Stmt>, RefEquality<'a, Stmt>>,
|
||||
// A stack of all bindings created in any scope, at any point in execution.
|
||||
pub bindings: Bindings<'a>,
|
||||
// Map from binding index to indexes of bindings that redefine it in other scopes.
|
||||
// Map from binding index to indices of bindings that redefine it in other scopes.
|
||||
pub redefinitions:
|
||||
std::collections::HashMap<BindingId, Vec<BindingId>, BuildNoHashHasher<BindingId>>,
|
||||
pub exprs: Vec<RefEquality<'a, Expr>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue