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