mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 20:28:58 +00:00
refactor(traverse): rename TraverseScoping::generate_binding_in_current_scope (#6832)
Rename `generate_in_current_scope` to `generate_binding_in_current_scope` - more descriptive name.
This commit is contained in:
parent
686727fc96
commit
a366fae8b7
2 changed files with 4 additions and 4 deletions
|
|
@ -319,13 +319,13 @@ impl<'a> TraverseCtx<'a> {
|
|||
///
|
||||
/// Creates a symbol with the provided name and flags and adds it to the current scope.
|
||||
///
|
||||
/// This is a shortcut for `ctx.scoping.generate_in_current_scope`.
|
||||
pub fn generate_in_current_scope(
|
||||
/// This is a shortcut for `ctx.scoping.generate_binding_in_current_scope`.
|
||||
pub fn generate_binding_in_current_scope(
|
||||
&mut self,
|
||||
name: Atom<'a>,
|
||||
flags: SymbolFlags,
|
||||
) -> BoundIdentifier<'a> {
|
||||
self.scoping.generate_in_current_scope(name, flags)
|
||||
self.scoping.generate_binding_in_current_scope(name, flags)
|
||||
}
|
||||
|
||||
/// Generate UID var name.
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ impl TraverseScoping {
|
|||
/// Generate binding in current scope.
|
||||
///
|
||||
/// Creates a symbol with the provided name and flags and adds it to the current scope.
|
||||
pub fn generate_in_current_scope<'a>(
|
||||
pub fn generate_binding_in_current_scope<'a>(
|
||||
&mut self,
|
||||
name: Atom<'a>,
|
||||
flags: SymbolFlags,
|
||||
|
|
|
|||
Loading…
Reference in a new issue