Home / Function/ visitValue() — react Function Reference

visitValue() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  11bb7b21_44b4_666c_d428_28ac86902860["visitValue()"]
  3ec9ad0b_e058_4e7f_19c6_b276581f7487["Visitor"]
  11bb7b21_44b4_666c_d428_28ac86902860 -->|defined in| 3ec9ad0b_e058_4e7f_19c6_b276581f7487
  589b952c_54d9_e44c_b76d_f45a1cf48ba7["visitHirFunction()"]
  11bb7b21_44b4_666c_d428_28ac86902860 -->|calls| 589b952c_54d9_e44c_b76d_f45a1cf48ba7
  4b2dfca2_90c1_e230_94e6_f6d4248bdb52["traverseValue()"]
  11bb7b21_44b4_666c_d428_28ac86902860 -->|calls| 4b2dfca2_90c1_e230_94e6_f6d4248bdb52
  efd512bc_cd12_5af4_cd24_a098be1037ec["visitValue()"]
  11bb7b21_44b4_666c_d428_28ac86902860 -->|calls| efd512bc_cd12_5af4_cd24_a098be1037ec
  style 11bb7b21_44b4_666c_d428_28ac86902860 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/RenameVariables.ts lines 104–113

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

Domain

Subdomains

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/RenameVariables.ts.
Where is visitValue() defined?
visitValue() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/RenameVariables.ts at line 104.
What does visitValue() call?
visitValue() calls 3 function(s): traverseValue, visitHirFunction, visitValue.

Analyze Your Own Codebase

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

Try Supermodel Free