mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
refactor(semantic)!: rename SymbolTable::iter to symbol_ids (#5621)
`symbol_ids` is a more descriptive name.
This commit is contained in:
parent
96a15526aa
commit
1fa3e5687a
2 changed files with 2 additions and 2 deletions
|
|
@ -125,7 +125,7 @@ impl Linter {
|
|||
rule.run_once(ctx);
|
||||
}
|
||||
|
||||
for symbol in semantic.symbols().iter() {
|
||||
for symbol in semantic.symbols().symbol_ids() {
|
||||
for (rule, ctx) in &rules {
|
||||
rule.run_on_symbol(symbol, ctx);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ impl SymbolTable {
|
|||
self.len() == 0
|
||||
}
|
||||
|
||||
pub fn iter(&self) -> impl Iterator<Item = SymbolId> + '_ {
|
||||
pub fn symbol_ids(&self) -> impl Iterator<Item = SymbolId> + '_ {
|
||||
self.spans.iter_enumerated().map(|(symbol_id, _)| symbol_id)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue