Home / Function/ visitReactiveFunctionValue() — react Function Reference

visitReactiveFunctionValue() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  a5e11dc5_cbd8_fedf_abbb_98de9dd31fe3["visitReactiveFunctionValue()"]
  0978ed10_d7af_9dac_ac08_cbaa51b0ff27["PromoteTemporaries"]
  a5e11dc5_cbd8_fedf_abbb_98de9dd31fe3 -->|defined in| 0978ed10_d7af_9dac_ac08_cbaa51b0ff27
  7f309c71_43ae_fe8e_5996_da58339b724c["visitReactiveFunctionValue()"]
  7f309c71_43ae_fe8e_5996_da58339b724c -->|calls| a5e11dc5_cbd8_fedf_abbb_98de9dd31fe3
  7f309c71_43ae_fe8e_5996_da58339b724c["visitReactiveFunctionValue()"]
  a5e11dc5_cbd8_fedf_abbb_98de9dd31fe3 -->|calls| 7f309c71_43ae_fe8e_5996_da58339b724c
  81fadb8d_22f1_6208_bbd3_8af4016beda9["promoteIdentifier()"]
  a5e11dc5_cbd8_fedf_abbb_98de9dd31fe3 -->|calls| 81fadb8d_22f1_6208_bbd3_8af4016beda9
  2435b5f8_41a6_0458_ba88_4479b965455f["visitReactiveFunction()"]
  a5e11dc5_cbd8_fedf_abbb_98de9dd31fe3 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f
  style a5e11dc5_cbd8_fedf_abbb_98de9dd31fe3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PromoteUsedTemporaries.ts lines 89–102

  override visitReactiveFunctionValue(
    _id: InstructionId,
    _dependencies: Array<Place>,
    fn: ReactiveFunction,
    state: State,
  ): void {
    for (const operand of fn.params) {
      const place = operand.kind === 'Identifier' ? operand : operand.place;
      if (place.identifier.name === null) {
        promoteIdentifier(place.identifier, state);
      }
    }
    visitReactiveFunction(fn, this, state);
  }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free