Home / Function/ constructor() — react Function Reference

constructor() — react Function Reference

Architecture documentation for the constructor() function in InferMutationAliasingEffects.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  d0aec9b8_4c63_724a_9e22_c098b94d3c76["constructor()"]
  0e22a644_fb0d_df7b_1432_f6d30878a62a["Context"]
  d0aec9b8_4c63_724a_9e22_c098b94d3c76 -->|defined in| 0e22a644_fb0d_df7b_1432_f6d30878a62a
  12eea79a_6320_6cf8_e23a_3d4f912943ba["constructor()"]
  12eea79a_6320_6cf8_e23a_3d4f912943ba -->|calls| d0aec9b8_4c63_724a_9e22_c098b94d3c76
  12eea79a_6320_6cf8_e23a_3d4f912943ba["constructor()"]
  d0aec9b8_4c63_724a_9e22_c098b94d3c76 -->|calls| 12eea79a_6320_6cf8_e23a_3d4f912943ba
  style d0aec9b8_4c63_724a_9e22_c098b94d3c76 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingEffects.ts lines 280–290

  constructor(
    isFunctionExpression: boolean,
    fn: HIRFunction,
    hoistedContextDeclarations: Map<DeclarationId, Place | null>,
    nonMutatingSpreads: Set<IdentifierId>,
  ) {
    this.isFuctionExpression = isFunctionExpression;
    this.fn = fn;
    this.hoistedContextDeclarations = hoistedContextDeclarations;
    this.nonMutatingSpreads = nonMutatingSpreads;
  }

Domain

Subdomains

Called By

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingEffects.ts.
Where is constructor() defined?
constructor() is defined in compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingEffects.ts at line 280.
What does constructor() call?
constructor() calls 1 function(s): constructor.
What calls constructor()?
constructor() is called by 1 function(s): constructor.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free