get() — react Function Reference
Architecture documentation for the get() function in Dominator.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD a90edee2_35a1_577c_a329_5f6319fef1d4["get()"] 0732b54e_6e75_2208_9742_addaecfa3581["PostDominator"] a90edee2_35a1_577c_a329_5f6319fef1d4 -->|defined in| 0732b54e_6e75_2208_9742_addaecfa3581 229919e6_9735_4317_1205_cd584725c183["get()"] 229919e6_9735_4317_1205_cd584725c183 -->|calls| a90edee2_35a1_577c_a329_5f6319fef1d4 2ab5bf9c_e206_7c2b_7310_4c254855325b["postDominatorFrontier()"] 2ab5bf9c_e206_7c2b_7310_4c254855325b -->|calls| a90edee2_35a1_577c_a329_5f6319fef1d4 8017034f_f43c_cd01_077d_41294bd5f874["postDominatorsOf()"] 8017034f_f43c_cd01_077d_41294bd5f874 -->|calls| a90edee2_35a1_577c_a329_5f6319fef1d4 229919e6_9735_4317_1205_cd584725c183["get()"] a90edee2_35a1_577c_a329_5f6319fef1d4 -->|calls| 229919e6_9735_4317_1205_cd584725c183 041ca752_10c1_3cda_1f5c_02f44a01310e["invariant()"] a90edee2_35a1_577c_a329_5f6319fef1d4 -->|calls| 041ca752_10c1_3cda_1f5c_02f44a01310e style a90edee2_35a1_577c_a329_5f6319fef1d4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/Dominator.ts lines 126–133
get(id: T): T | null {
const dominator = this.#nodes.get(id);
CompilerError.invariant(dominator !== undefined, {
reason: 'Unknown node',
loc: GeneratedSource,
});
return dominator === id ? null : dominator;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does get() do?
get() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/Dominator.ts.
Where is get() defined?
get() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/Dominator.ts at line 126.
What does get() call?
get() calls 2 function(s): get, invariant.
What calls get()?
get() is called by 3 function(s): get, postDominatorFrontier, postDominatorsOf.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free