getLoadKind() — react Function Reference
Architecture documentation for the getLoadKind() function in BuildHIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD ed6d70a7_397f_1137_1a2e_8b9092747144["getLoadKind()"] e04c04d6_37a7_1dc3_7fae_7d07660d0af9["BuildHIR.ts"] ed6d70a7_397f_1137_1a2e_8b9092747144 -->|defined in| e04c04d6_37a7_1dc3_7fae_7d07660d0af9 ace1177a_10b2_b870_31fd_da4aa845554c["lowerExpression()"] ace1177a_10b2_b870_31fd_da4aa845554c -->|calls| ed6d70a7_397f_1137_1a2e_8b9092747144 bc571674_9276_a5d1_38b8_101118e7d161["lowerJsxElementName()"] bc571674_9276_a5d1_38b8_101118e7d161 -->|calls| ed6d70a7_397f_1137_1a2e_8b9092747144 7477f6f4_c8ce_95b3_d35f_2f53341af86d["lowerJsxMemberExpression()"] 7477f6f4_c8ce_95b3_d35f_2f53341af86d -->|calls| ed6d70a7_397f_1137_1a2e_8b9092747144 4a17c055_80b4_82ac_17fb_4bf809d82c24["isContextIdentifier()"] ed6d70a7_397f_1137_1a2e_8b9092747144 -->|calls| 4a17c055_80b4_82ac_17fb_4bf809d82c24 style ed6d70a7_397f_1137_1a2e_8b9092747144 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/BuildHIR.ts lines 3606–3612
function getLoadKind(
builder: HIRBuilder,
identifier: NodePath<t.Identifier | t.JSXIdentifier>,
): 'LoadLocal' | 'LoadContext' {
const isContext = builder.isContextIdentifier(identifier);
return isContext ? 'LoadContext' : 'LoadLocal';
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does getLoadKind() do?
getLoadKind() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/BuildHIR.ts.
Where is getLoadKind() defined?
getLoadKind() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/BuildHIR.ts at line 3606.
What does getLoadKind() call?
getLoadKind() calls 1 function(s): isContextIdentifier.
What calls getLoadKind()?
getLoadKind() is called by 3 function(s): lowerExpression, lowerJsxElementName, lowerJsxMemberExpression.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free