visitReactiveFunction() — react Function Reference
Architecture documentation for the visitReactiveFunction() function in visitors.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 2435b5f8_41a6_0458_ba88_4479b965455f["visitReactiveFunction()"] 21609915_b03a_fd75_b58a_4cb86ef9315b["visitors.ts"] 2435b5f8_41a6_0458_ba88_4479b965455f -->|defined in| 21609915_b03a_fd75_b58a_4cb86ef9315b 42620bac_62b1_d7ff_d8c2_2caa2e202517["assertScopeInstructionsWithinScopes()"] 42620bac_62b1_d7ff_d8c2_2caa2e202517 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f 669f54fe_5626_0db2_2d83_29abcb3facb4["assertWellFormedBreakTargets()"] 669f54fe_5626_0db2_2d83_29abcb3facb4 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f cc29904c_66f3_5155_9ed7_837866d52047["codegenReactiveFunction()"] cc29904c_66f3_5155_9ed7_837866d52047 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f 9da29979_02d0_1e15_8502_72e24be20690["collectReactiveIdentifiers()"] 9da29979_02d0_1e15_8502_72e24be20690 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f c56dfea4_2f2d_7a14_318e_471dcde25f80["collectReferencedGlobals()"] c56dfea4_2f2d_7a14_318e_471dcde25f80 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f 7df374d3_bd11_ce99_3ad4_bdac1fc40fd0["visitReactiveFunctionValue()"] 7df374d3_bd11_ce99_3ad4_bdac1fc40fd0 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f 2ac9c5e0_0af2_213a_8b3d_392d0269e297["extractScopeDeclarationsFromDestructuring()"] 2ac9c5e0_0af2_213a_8b3d_392d0269e297 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f bafc9af7_3bd4_9301_506f_cee53459356f["mergeReactiveScopesThatInvalidateTogether()"] bafc9af7_3bd4_9301_506f_cee53459356f -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f a5e11dc5_cbd8_fedf_abbb_98de9dd31fe3["visitReactiveFunctionValue()"] a5e11dc5_cbd8_fedf_abbb_98de9dd31fe3 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f 7f309c71_43ae_fe8e_5996_da58339b724c["visitReactiveFunctionValue()"] 7f309c71_43ae_fe8e_5996_da58339b724c -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f 7d0786eb_5035_8035_b9d9_8acd0538e120["promoteUsedTemporaries()"] 7d0786eb_5035_8035_b9d9_8acd0538e120 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f 77e881c2_656f_6fcb_16da_4a82fd28728d["propagateEarlyReturns()"] 77e881c2_656f_6fcb_16da_4a82fd28728d -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f db2ea8f4_caf7_b1dc_4447_097f25808623["pruneAllReactiveScopes()"] db2ea8f4_caf7_b1dc_4447_097f25808623 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f style 2435b5f8_41a6_0458_ba88_4479b965455f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/visitors.ts lines 29–35
export function visitReactiveFunction<TState>(
fn: ReactiveFunction,
visitor: ReactiveFunctionVisitor<TState>,
state: TState,
): void {
visitor.visitBlock(fn.body, state);
}
Domain
Subdomains
Calls
Called By
- assertScopeInstructionsWithinScopes()
- assertWellFormedBreakTargets()
- codegenReactiveFunction()
- collectReactiveIdentifiers()
- collectReferencedGlobals()
- extractScopeDeclarationsFromDestructuring()
- getAliases()
- mergeReactiveScopesThatInvalidateTogether()
- promoteUsedTemporaries()
- propagateEarlyReturns()
- pruneAllReactiveScopes()
- pruneHoistedContexts()
- pruneInitializationDependencies()
- pruneNonEscapingScopes()
- pruneNonReactiveDependencies()
- pruneUnusedLValues()
- pruneUnusedLabels()
- pruneUnusedScopes()
- renameVariablesImpl()
- stabilizeBlockIds()
- validateMemoizedEffectDependencies()
- validatePreservedManualMemoization()
- visitReactiveFunctionValue()
- visitReactiveFunctionValue()
- visitReactiveFunctionValue()
- visitReactiveFunctionValue()
Source
Frequently Asked Questions
What does visitReactiveFunction() do?
visitReactiveFunction() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/visitors.ts.
Where is visitReactiveFunction() defined?
visitReactiveFunction() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/visitors.ts at line 29.
What does visitReactiveFunction() call?
visitReactiveFunction() calls 1 function(s): visitBlock.
What calls visitReactiveFunction()?
visitReactiveFunction() is called by 26 function(s): assertScopeInstructionsWithinScopes, assertWellFormedBreakTargets, codegenReactiveFunction, collectReactiveIdentifiers, collectReferencedGlobals, extractScopeDeclarationsFromDestructuring, getAliases, mergeReactiveScopesThatInvalidateTogether, and 18 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free