isContextIdentifier() — react Function Reference
Architecture documentation for the isContextIdentifier() function in HIRBuilder.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 4a17c055_80b4_82ac_17fb_4bf809d82c24["isContextIdentifier()"] d1b85268_f4cd_bc3c_7ba0_ee15dcc8a845["HIRBuilder"] 4a17c055_80b4_82ac_17fb_4bf809d82c24 -->|defined in| d1b85268_f4cd_bc3c_7ba0_ee15dcc8a845 c01b12bd_811d_9f90_f641_fac8e518dbb7["lowerStatement()"] c01b12bd_811d_9f90_f641_fac8e518dbb7 -->|calls| 4a17c055_80b4_82ac_17fb_4bf809d82c24 ace1177a_10b2_b870_31fd_da4aa845554c["lowerExpression()"] ace1177a_10b2_b870_31fd_da4aa845554c -->|calls| 4a17c055_80b4_82ac_17fb_4bf809d82c24 63369f82_2d96_a4ab_e404_a9089a5e6492["getStoreKind()"] 63369f82_2d96_a4ab_e404_a9089a5e6492 -->|calls| 4a17c055_80b4_82ac_17fb_4bf809d82c24 ed6d70a7_397f_1137_1a2e_8b9092747144["getLoadKind()"] ed6d70a7_397f_1137_1a2e_8b9092747144 -->|calls| 4a17c055_80b4_82ac_17fb_4bf809d82c24 b98634fa_1f83_e1bb_1406_d07e28c93b41["lowerAssignment()"] b98634fa_1f83_e1bb_1406_d07e28c93b41 -->|calls| 4a17c055_80b4_82ac_17fb_4bf809d82c24 2bbf96a6_6ccc_e175_4d4e_97f8806e7af6["isContextIdentifier()"] 4a17c055_80b4_82ac_17fb_4bf809d82c24 -->|calls| 2bbf96a6_6ccc_e175_4d4e_97f8806e7af6 style 4a17c055_80b4_82ac_17fb_4bf809d82c24 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/HIRBuilder.ts lines 293–307
isContextIdentifier(path: NodePath<t.Identifier | t.JSXIdentifier>): boolean {
const binding = this.#resolveBabelBinding(path);
if (binding) {
// Check if the binding is from module scope, if so return null
const outerBinding = this.#env.parentFunction.scope.parent.getBinding(
path.node.name,
);
if (binding === outerBinding) {
return false;
}
return this.#env.isContextIdentifier(binding.identifier);
} else {
return false;
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does isContextIdentifier() do?
isContextIdentifier() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIRBuilder.ts.
Where is isContextIdentifier() defined?
isContextIdentifier() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIRBuilder.ts at line 293.
What does isContextIdentifier() call?
isContextIdentifier() calls 1 function(s): isContextIdentifier.
What calls isContextIdentifier()?
isContextIdentifier() is called by 5 function(s): getLoadKind, getStoreKind, lowerAssignment, lowerExpression, lowerStatement.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free