refactor(semantic)!: rename SymbolTable::iter to symbol_ids (#5621)

`symbol_ids` is a more descriptive name.
This commit is contained in:
overlookmotel 2024-09-09 01:07:33 +00:00
parent 96a15526aa
commit 1fa3e5687a
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -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)
}