Home / Function/ visitValue() — react Function Reference

visitValue() — react Function Reference

Architecture documentation for the visitValue() function in PromoteUsedTemporaries.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  bd23d26f_7617_08ae_6b8f_87d751ee409d["visitValue()"]
  0978ed10_d7af_9dac_ac08_cbaa51b0ff27["PromoteTemporaries"]
  bd23d26f_7617_08ae_6b8f_87d751ee409d -->|defined in| 0978ed10_d7af_9dac_ac08_cbaa51b0ff27
  fef1bf35_8d3b_cf6f_067f_15c57d993e32["visitValue()"]
  fef1bf35_8d3b_cf6f_067f_15c57d993e32 -->|calls| bd23d26f_7617_08ae_6b8f_87d751ee409d
  589b952c_54d9_e44c_b76d_f45a1cf48ba7["visitHirFunction()"]
  bd23d26f_7617_08ae_6b8f_87d751ee409d -->|calls| 589b952c_54d9_e44c_b76d_f45a1cf48ba7
  fef1bf35_8d3b_cf6f_067f_15c57d993e32["visitValue()"]
  bd23d26f_7617_08ae_6b8f_87d751ee409d -->|calls| fef1bf35_8d3b_cf6f_067f_15c57d993e32
  4b2dfca2_90c1_e230_94e6_f6d4248bdb52["traverseValue()"]
  bd23d26f_7617_08ae_6b8f_87d751ee409d -->|calls| 4b2dfca2_90c1_e230_94e6_f6d4248bdb52
  style bd23d26f_7617_08ae_6b8f_87d751ee409d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PromoteUsedTemporaries.ts lines 78–87

  override visitValue(
    id: InstructionId,
    value: ReactiveValue,
    state: State,
  ): void {
    this.traverseValue(id, value, state);
    if (value.kind === 'FunctionExpression' || value.kind === 'ObjectMethod') {
      this.visitHirFunction(value.loweredFunc.func, state);
    }
  }

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free