mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
refactor(transformer): deref SymbolId immediately (#5836)
Tiny refactor. Deref `&SymbolId` to `SymbolId` as early as possible.
This commit is contained in:
parent
56703a3a59
commit
3dd188c139
1 changed files with 2 additions and 2 deletions
|
|
@ -245,8 +245,8 @@ impl<'a> ArrowFunctions<'a> {
|
|||
let this_var = self.this_var_stack.last_mut().unwrap();
|
||||
if this_var.is_none() {
|
||||
let target_scope_id =
|
||||
ctx.scopes().ancestors(ctx.current_scope_id()).skip(1).find(|scope_id| {
|
||||
let scope_flags = ctx.scopes().get_flags(*scope_id);
|
||||
ctx.scopes().ancestors(ctx.current_scope_id()).skip(1).find(|&scope_id| {
|
||||
let scope_flags = ctx.scopes().get_flags(scope_id);
|
||||
scope_flags.intersects(ScopeFlags::Function | ScopeFlags::Top)
|
||||
&& !scope_flags.contains(ScopeFlags::Arrow)
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue