From 6a64b2d10c4704c53fa58c63280feada65731eaf Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Sat, 29 Jun 2024 12:57:00 +0900 Subject: [PATCH] chore: comment --- oxc-rsc/src/hoist.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oxc-rsc/src/hoist.rs b/oxc-rsc/src/hoist.rs index 8b2e9ad9..347838ac 100644 --- a/oxc-rsc/src/hoist.rs +++ b/oxc-rsc/src/hoist.rs @@ -64,7 +64,7 @@ fn has_directive(body: &FunctionBody, directive: &str) -> bool { .any(|e| e.expression.value == directive) } -// replace function definition with action register/bind +// create action register and bind expression // $$register($$hoist, "", "$$hoist").bind(null, ) fn ast_register_bind_expression<'a>( ctx: &mut oxc_traverse::TraverseCtx<'a>, @@ -122,6 +122,8 @@ fn ast_register_bind_expression<'a>( expr } +// create hoisted function declarations +// export function $$hoist(...) { ... } fn ast_hoist_declaration<'a>( ctx: &mut oxc_traverse::TraverseCtx<'a>, span: Span,