Home / Function/ clone() — react Function Reference

clone() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6ebab1ee_aaee_a649_32a1_d9f91bbdc948["clone()"]
  7f9a06c8_8e18_76fc_0edd_1f0d608aae44["InferenceState"]
  6ebab1ee_aaee_a649_32a1_d9f91bbdc948 -->|defined in| 7f9a06c8_8e18_76fc_0edd_1f0d608aae44
  1f2853c7_05e1_f3c4_b9d5_1f5ca0f648ea["inferMutationAliasingEffects()"]
  1f2853c7_05e1_f3c4_b9d5_1f5ca0f648ea -->|calls| 6ebab1ee_aaee_a649_32a1_d9f91bbdc948
  style 6ebab1ee_aaee_a649_32a1_d9f91bbdc948 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingEffects.ts lines 1609–1616

  clone(): InferenceState {
    return new InferenceState(
      this.env,
      this.#isFunctionExpression,
      new Map(this.#values),
      new Map(this.#variables),
    );
  }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free