mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
refactor(semantic): rename add_node_id to add_current_node_id_to_current_scope (#1847)
https://github.com/oxc-project/oxc/pull/1826#discussion_r1437074750
This commit is contained in:
parent
9c9d882d93
commit
497a0b8462
1 changed files with 3 additions and 3 deletions
|
|
@ -415,12 +415,12 @@ impl<'a> SemanticBuilder<'a> {
|
||||||
AstKind::Function(func) => {
|
AstKind::Function(func) => {
|
||||||
self.function_stack.push(self.current_node_id);
|
self.function_stack.push(self.current_node_id);
|
||||||
func.bind(self);
|
func.bind(self);
|
||||||
self.add_node_id();
|
self.add_current_node_id_to_current_scope();
|
||||||
self.make_all_namespaces_valuelike();
|
self.make_all_namespaces_valuelike();
|
||||||
}
|
}
|
||||||
AstKind::ArrowExpression(_) => {
|
AstKind::ArrowExpression(_) => {
|
||||||
self.function_stack.push(self.current_node_id);
|
self.function_stack.push(self.current_node_id);
|
||||||
self.add_node_id();
|
self.add_current_node_id_to_current_scope();
|
||||||
self.make_all_namespaces_valuelike();
|
self.make_all_namespaces_valuelike();
|
||||||
}
|
}
|
||||||
AstKind::Class(class) => {
|
AstKind::Class(class) => {
|
||||||
|
|
@ -539,7 +539,7 @@ impl<'a> SemanticBuilder<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn add_node_id(&mut self) {
|
fn add_current_node_id_to_current_scope(&mut self) {
|
||||||
self.scope.add_node_id(self.current_scope_id, self.current_node_id);
|
self.scope.add_node_id(self.current_scope_id, self.current_node_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue