lowerFunctionToValue() — react Function Reference
Architecture documentation for the lowerFunctionToValue() function in BuildHIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 2e9602e6_59e9_f811_a650_6a66577561c4["lowerFunctionToValue()"] e04c04d6_37a7_1dc3_7fae_7d07660d0af9["BuildHIR.ts"] 2e9602e6_59e9_f811_a650_6a66577561c4 -->|defined in| e04c04d6_37a7_1dc3_7fae_7d07660d0af9 c01b12bd_811d_9f90_f641_fac8e518dbb7["lowerStatement()"] c01b12bd_811d_9f90_f641_fac8e518dbb7 -->|calls| 2e9602e6_59e9_f811_a650_6a66577561c4 ace1177a_10b2_b870_31fd_da4aa845554c["lowerExpression()"] ace1177a_10b2_b870_31fd_da4aa845554c -->|calls| 2e9602e6_59e9_f811_a650_6a66577561c4 535369af_370f_d1a4_e72e_56482eceef72["lowerFunction()"] 2e9602e6_59e9_f811_a650_6a66577561c4 -->|calls| 535369af_370f_d1a4_e72e_56482eceef72 style 2e9602e6_59e9_f811_a650_6a66577561c4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/BuildHIR.ts lines 3462–3482
function lowerFunctionToValue(
builder: HIRBuilder,
expr: NodePath<
t.FunctionExpression | t.ArrowFunctionExpression | t.FunctionDeclaration
>,
): InstructionValue {
const exprNode = expr.node;
const exprLoc = exprNode.loc ?? GeneratedSource;
const loweredFunc = lowerFunction(builder, expr);
if (!loweredFunc) {
return {kind: 'UnsupportedNode', node: exprNode, loc: exprLoc};
}
return {
kind: 'FunctionExpression',
name: loweredFunc.func.id,
nameHint: null,
type: expr.node.type,
loc: exprLoc,
loweredFunc,
};
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does lowerFunctionToValue() do?
lowerFunctionToValue() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/BuildHIR.ts.
Where is lowerFunctionToValue() defined?
lowerFunctionToValue() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/BuildHIR.ts at line 3462.
What does lowerFunctionToValue() call?
lowerFunctionToValue() calls 1 function(s): lowerFunction.
What calls lowerFunctionToValue()?
lowerFunctionToValue() is called by 2 function(s): lowerExpression, lowerStatement.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free