Skip to content

Commit 8e43eef

Browse files
authored
refactor(semantic): improve declare symbol logic in FormalParameters (#2088)
1 parent a368134 commit 8e43eef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/oxc_semantic/src/binder.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ impl<'a> Binder for FormalParameters<'a> {
207207
SymbolFlags::FunctionScopedVariableExcludes
208208
};
209209
let is_signature = self.kind == FormalParameterKind::Signature;
210-
self.bound_names(&mut |ident| {
211-
if !is_signature {
210+
if !is_signature {
211+
self.bound_names(&mut |ident| {
212212
let symbol_id = builder.declare_symbol(ident.span, &ident.name, includes, excludes);
213213
ident.symbol_id.set(Some(symbol_id));
214-
}
215-
});
214+
});
215+
}
216216
}
217217
}
218218

0 commit comments

Comments
 (0)