From 497a0b846259ee7cb0417a05a5f6ef2d60aa0996 Mon Sep 17 00:00:00 2001 From: Dunqing Date: Thu, 28 Dec 2023 13:05:25 +0800 Subject: [PATCH] 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 --- crates/oxc_semantic/src/builder.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/oxc_semantic/src/builder.rs b/crates/oxc_semantic/src/builder.rs index 0ee222415..1d74437f4 100644 --- a/crates/oxc_semantic/src/builder.rs +++ b/crates/oxc_semantic/src/builder.rs @@ -415,12 +415,12 @@ impl<'a> SemanticBuilder<'a> { AstKind::Function(func) => { self.function_stack.push(self.current_node_id); func.bind(self); - self.add_node_id(); + self.add_current_node_id_to_current_scope(); self.make_all_namespaces_valuelike(); } AstKind::ArrowExpression(_) => { 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(); } 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); }