mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
refactor(semantic): remove resetting current_reference_flags in visit functions (#7986)
We have reset current_reference_flags after resolving reference flags in https://github.com/oxc-project/oxc/pull/7923, so that we don't need to set it to empty in another place.
This commit is contained in:
parent
3250a47a97
commit
48cb52b335
1 changed files with 0 additions and 3 deletions
|
|
@ -854,8 +854,6 @@ impl<'a> Visit<'a> for SemanticBuilder<'a> {
|
|||
|
||||
self.visit_assignment_target(&expr.left);
|
||||
|
||||
self.current_reference_flags = ReferenceFlags::empty();
|
||||
|
||||
/* cfg */
|
||||
let cfg_ixs = control_flow!(self, |cfg| {
|
||||
if expr.operator.is_logical() {
|
||||
|
|
@ -1764,7 +1762,6 @@ impl<'a> Visit<'a> for SemanticBuilder<'a> {
|
|||
// ^ ^ We always treat `a` as Read and Write reference,
|
||||
self.current_reference_flags = ReferenceFlags::read_write();
|
||||
self.visit_simple_assignment_target(&it.argument);
|
||||
self.current_reference_flags = ReferenceFlags::empty();
|
||||
self.leave_node(kind);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue