Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
updating test results
Browse files Browse the repository at this point in the history
  • Loading branch information
xunilrj committed Nov 28, 2022
1 parent 8dd8dbf commit cac35a7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/rome_js_semantic/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ pub struct SemanticEventExtractor {
stash: VecDeque<SemanticEvent>,
scopes: Vec<Scope>,
next_scope_id: usize,
/// At any point this is the set of available bindings and
/// At any point this is the set of available bindings and
/// the range of its declaration
bindings: FxHashMap<SyntaxTokenText, TextRange>,
}
Expand Down Expand Up @@ -467,9 +467,7 @@ impl SemanticEventExtractor {
};

let current_scope = self.current_scope_mut();
let references = current_scope.references
.entry(name)
.or_default();
let references = current_scope.references.entry(name).or_default();
references.push(Reference::Read {
range: node.text_range(),
is_exported,
Expand Down Expand Up @@ -651,7 +649,7 @@ impl SemanticEventExtractor {
}

// Remove all bindings declared in this scope

for binding in scope.bindings {
self.bindings.remove(&binding.name);
}
Expand Down

0 comments on commit cac35a7

Please sign in to comment.