constructor() — react Function Reference
Architecture documentation for the constructor() function in Imports.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD daf7f40d_4b1a_938b_ef51_4bee7b9c635c["constructor()"] 1bba49a9_dc32_ad8e_e249_ee6b8eb56d16["ProgramContext"] daf7f40d_4b1a_938b_ef51_4bee7b9c635c -->|defined in| 1bba49a9_dc32_ad8e_e249_ee6b8eb56d16 78d6080e_8c56_4f2c_6894_efdb15a87a5c["getReactCompilerRuntimeModule()"] daf7f40d_4b1a_938b_ef51_4bee7b9c635c -->|calls| 78d6080e_8c56_4f2c_6894_efdb15a87a5c style daf7f40d_4b1a_938b_ef51_4bee7b9c635c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Imports.ts lines 93–108
constructor({
program,
suppressions,
opts,
filename,
code,
hasModuleScopeOptOut,
}: ProgramContextOptions) {
this.scope = program.scope;
this.opts = opts;
this.filename = filename;
this.code = code;
this.reactRuntimeModule = getReactCompilerRuntimeModule(opts.target);
this.suppressions = suppressions;
this.hasModuleScopeOptOut = hasModuleScopeOptOut;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Imports.ts.
Where is constructor() defined?
constructor() is defined in compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Imports.ts at line 93.
What does constructor() call?
constructor() calls 1 function(s): getReactCompilerRuntimeModule.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free