constantPropagation() — react Function Reference
Architecture documentation for the constantPropagation() function in ConstantPropagation.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 2e35d5f1_9a0c_ffa0_1749_fb79ea43d847["constantPropagation()"] ee83ff7b_e532_0fd6_0eae_7fe885ffe129["ConstantPropagation.ts"] 2e35d5f1_9a0c_ffa0_1749_fb79ea43d847 -->|defined in| ee83ff7b_e532_0fd6_0eae_7fe885ffe129 fbdc3953_3621_331c_a5b1_d3199bea5254["constantPropagationImpl()"] 2e35d5f1_9a0c_ffa0_1749_fb79ea43d847 -->|calls| fbdc3953_3621_331c_a5b1_d3199bea5254 style 2e35d5f1_9a0c_ffa0_1749_fb79ea43d847 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Optimization/ConstantPropagation.ts lines 59–62
export function constantPropagation(fn: HIRFunction): void {
const constants: Constants = new Map();
constantPropagationImpl(fn, constants);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does constantPropagation() do?
constantPropagation() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Optimization/ConstantPropagation.ts.
Where is constantPropagation() defined?
constantPropagation() is defined in compiler/packages/babel-plugin-react-compiler/src/Optimization/ConstantPropagation.ts at line 59.
What does constantPropagation() call?
constantPropagation() calls 1 function(s): constantPropagationImpl.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free