Skip to content

Commit

Permalink
refactor(semantic): improve declare symbol logic in FormalParameters (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing authored Jan 20, 2024
1 parent a368134 commit 8e43eef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/oxc_semantic/src/binder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,12 @@ impl<'a> Binder for FormalParameters<'a> {
SymbolFlags::FunctionScopedVariableExcludes
};
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);
ident.symbol_id.set(Some(symbol_id));
}
});
});
}
}
}

Expand Down

0 comments on commit 8e43eef

Please sign in to comment.