convertValueToExpression() — react Function Reference
Architecture documentation for the convertValueToExpression() function in CodegenReactiveFunction.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 953c4efc_05c3_e0ec_8bb2_341bc0c35066["convertValueToExpression()"] dc7f10c2_c914_a162_d02b_a10a15c64a5f["CodegenReactiveFunction.ts"] 953c4efc_05c3_e0ec_8bb2_341bc0c35066 -->|defined in| dc7f10c2_c914_a162_d02b_a10a15c64a5f e98029e7_d319_5eee_1233_4a0434b62d22["codegenInstruction()"] e98029e7_d319_5eee_1233_4a0434b62d22 -->|calls| 953c4efc_05c3_e0ec_8bb2_341bc0c35066 d2920090_42bc_7919_897f_42680a08ace6["codegenInstructionValueToExpression()"] d2920090_42bc_7919_897f_42680a08ace6 -->|calls| 953c4efc_05c3_e0ec_8bb2_341bc0c35066 0b424541_28a8_fc42_ac4b_b6ae2672cb88["codegenPlaceToExpression()"] 0b424541_28a8_fc42_ac4b_b6ae2672cb88 -->|calls| 953c4efc_05c3_e0ec_8bb2_341bc0c35066 style 953c4efc_05c3_e0ec_8bb2_341bc0c35066 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts lines 1691–1698
function convertValueToExpression(
value: t.JSXText | t.Expression,
): t.Expression {
if (value.type === 'JSXText') {
return createStringLiteral(value.loc, value.value);
}
return value;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does convertValueToExpression() do?
convertValueToExpression() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts.
Where is convertValueToExpression() defined?
convertValueToExpression() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts at line 1691.
What calls convertValueToExpression()?
convertValueToExpression() is called by 3 function(s): codegenInstruction, codegenInstructionValueToExpression, codegenPlaceToExpression.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free