mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
refactor(semantic): SymbolTable::is_empty use is_empty (#5622)
Nit. `is_empty()` is sometimes more performant than `len() == 0`.
This commit is contained in:
parent
1fa3e5687a
commit
d22a9b72e0
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ impl SymbolTable {
|
|||
|
||||
#[inline]
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.len() == 0
|
||||
self.spans.is_empty()
|
||||
}
|
||||
|
||||
pub fn symbol_ids(&self) -> impl Iterator<Item = SymbolId> + '_ {
|
||||
|
|
|
|||
Loading…
Reference in a new issue