Skip to content

Commit

Permalink
Update on "[compiled] Refactor codegen for ReactiveFunction"
Browse files Browse the repository at this point in the history
Move the codegen for ReactiveFunction into a helper function.

This will be reused in the future, when we want to codegen outlined
function expressions.

There's no functional change with this PR.

[ghstack-poisoned]
  • Loading branch information
gsathya committed Jun 25, 2024
2 parents b63e5f3 + d8ab60d commit 2f54bc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export function compileProgram(

const compiledFns: Array<CompileResult> = [];

function traverseFunction(fn: BabelFn, pass: CompilerPass) {
function traverseFunction(fn: BabelFn, pass: CompilerPass): void {
const result = traverseFunctionImpl(fn, pass, useMemoCacheIdentifier);
if (!result) return;
compiledFns.push(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
ArrayPattern,
BlockId,
GeneratedSource,
HIRFunction,
Identifier,
IdentifierId,
InstructionKind,
Expand Down

0 comments on commit 2f54bc3

Please sign in to comment.