Skip to content

Commit

Permalink
refactor(transformer): internal functions not pub in logical assign…
Browse files Browse the repository at this point in the history
…ment operator transform (#5898)
  • Loading branch information
overlookmotel committed Sep 20, 2024
1 parent b11d91c commit 41fbe15
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ impl<'a> LogicalAssignmentOperators<'a> {
///
/// If it is an identifier, clone the identifier by [TraverseCtx::clone_identifier_reference], otherwise, use [CloneIn].
///
/// TODO: remove this until <https://github.com/oxc-project/oxc/issues/4804> is resolved.
pub fn clone_expression(expr: &Expression<'a>, ctx: &mut TraverseCtx<'a>) -> Expression<'a> {
/// TODO: remove this once <https://github.com/oxc-project/oxc/issues/4804> is resolved.
fn clone_expression(expr: &Expression<'a>, ctx: &mut TraverseCtx<'a>) -> Expression<'a> {
match expr {
Expression::Identifier(ident) => ctx.ast.expression_from_identifier_reference(
ctx.clone_identifier_reference(ident, ReferenceFlags::Read),
Expand All @@ -340,7 +340,7 @@ impl<'a> LogicalAssignmentOperators<'a> {
}
}

pub fn maybe_generate_memoised(
fn maybe_generate_memoised(
&mut self,
expr: &Expression<'a>,
ctx: &mut TraverseCtx<'a>,
Expand Down

0 comments on commit 41fbe15

Please sign in to comment.