From f81aa7faea54ef4106979945f38c621bd9ac9417 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Wed, 16 Oct 2024 06:48:03 +0000 Subject: [PATCH] refactor(transformer): `HelperLoader` common transform: comments (#6599) Just tidy up comments a little. --- crates/oxc_transformer/src/common/helper_loader.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/oxc_transformer/src/common/helper_loader.rs b/crates/oxc_transformer/src/common/helper_loader.rs index abfa4fa753696..24ed0ec97ba53 100644 --- a/crates/oxc_transformer/src/common/helper_loader.rs +++ b/crates/oxc_transformer/src/common/helper_loader.rs @@ -1,4 +1,4 @@ -//! Utility transform to load helper functions +//! Utility transform to load helper functions. //! //! This module provides functionality to load helper functions in different modes. //! It supports runtime, external, and inline (not yet implemented) modes for loading helper functions. @@ -109,6 +109,7 @@ pub enum HelperLoaderMode { Runtime, } +/// Helper loader options. #[derive(Clone, Debug, Deserialize)] pub struct HelperLoaderOptions { #[serde(default = "default_as_module_name")] @@ -182,7 +183,7 @@ impl<'a> HelperLoaderStore<'a> { } } - /// Load and call a helper function and return the `CallExpression`. + /// Load and call a helper function and return a `CallExpression`. #[expect(dead_code)] pub fn call( &mut self, @@ -218,7 +219,7 @@ impl<'a> HelperLoaderStore<'a> { ) } - /// Load a helper function and return the callee expression. + /// Load a helper function and return a callee expression. pub fn load(&self, helper: Helper, ctx: &mut TraverseCtx<'a>) -> Expression<'a> { match self.mode { HelperLoaderMode::Runtime => self.transform_for_runtime_helper(helper, ctx),