mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
refactor(semantic): improve declare symbol logic in FormalParameters (#2088)
This commit is contained in:
parent
a36813405b
commit
8e43eeffe7
1 changed files with 4 additions and 4 deletions
|
|
@ -207,12 +207,12 @@ impl<'a> Binder for FormalParameters<'a> {
|
||||||
SymbolFlags::FunctionScopedVariableExcludes
|
SymbolFlags::FunctionScopedVariableExcludes
|
||||||
};
|
};
|
||||||
let is_signature = self.kind == FormalParameterKind::Signature;
|
let is_signature = self.kind == FormalParameterKind::Signature;
|
||||||
self.bound_names(&mut |ident| {
|
if !is_signature {
|
||||||
if !is_signature {
|
self.bound_names(&mut |ident| {
|
||||||
let symbol_id = builder.declare_symbol(ident.span, &ident.name, includes, excludes);
|
let symbol_id = builder.declare_symbol(ident.span, &ident.name, includes, excludes);
|
||||||
ident.symbol_id.set(Some(symbol_id));
|
ident.symbol_id.set(Some(symbol_id));
|
||||||
}
|
});
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue