Home / Function/ transformValue() — react Function Reference

transformValue() — react Function Reference

Architecture documentation for the transformValue() function in visitors.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  41f8ce8e_b5b8_2fcb_46ab_0111bb06c2f2["transformValue()"]
  af3ace55_db6d_865e_92b9_81486f6af1e7["ReactiveFunctionTransform"]
  41f8ce8e_b5b8_2fcb_46ab_0111bb06c2f2 -->|defined in| af3ace55_db6d_865e_92b9_81486f6af1e7
  2046f7e5_51f5_4e62_fa3f_1036329a3746["traverseValue()"]
  2046f7e5_51f5_4e62_fa3f_1036329a3746 -->|calls| 41f8ce8e_b5b8_2fcb_46ab_0111bb06c2f2
  31c2e15e_64cc_996c_4233_ced53a2d09ed["traverseInstruction()"]
  31c2e15e_64cc_996c_4233_ced53a2d09ed -->|calls| 41f8ce8e_b5b8_2fcb_46ab_0111bb06c2f2
  50f3d941_f0f5_a432_b09a_ae83726a516f["traverseTerminal()"]
  50f3d941_f0f5_a432_b09a_ae83726a516f -->|calls| 41f8ce8e_b5b8_2fcb_46ab_0111bb06c2f2
  efd512bc_cd12_5af4_cd24_a098be1037ec["visitValue()"]
  41f8ce8e_b5b8_2fcb_46ab_0111bb06c2f2 -->|calls| efd512bc_cd12_5af4_cd24_a098be1037ec
  style 41f8ce8e_b5b8_2fcb_46ab_0111bb06c2f2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/visitors.ts lines 360–367

  transformValue(
    id: InstructionId,
    value: ReactiveValue,
    state: TState,
  ): TransformedValue {
    this.visitValue(id, value, state);
    return {kind: 'keep'};
  }

Domain

Subdomains

Calls

Frequently Asked Questions

What does transformValue() do?
transformValue() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/visitors.ts.
Where is transformValue() defined?
transformValue() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/visitors.ts at line 360.
What does transformValue() call?
transformValue() calls 1 function(s): visitValue.
What calls transformValue()?
transformValue() is called by 3 function(s): traverseInstruction, traverseTerminal, traverseValue.

Analyze Your Own Codebase

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

Try Supermodel Free