Home / Function/ visitScope() — react Function Reference

visitScope() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  9ecb747f_cf74_313d_4cec_4c32788af678["visitScope()"]
  a4a59234_8b6b_31f7_3cdd_2c065b60eae1["PromoteAllInstancedOfPromotedTemporaries"]
  9ecb747f_cf74_313d_4cec_4c32788af678 -->|defined in| a4a59234_8b6b_31f7_3cdd_2c065b60eae1
  2eebfc2b_b1f6_9f25_ad32_78be0b56f06b["traverseScope()"]
  9ecb747f_cf74_313d_4cec_4c32788af678 -->|calls| 2eebfc2b_b1f6_9f25_ad32_78be0b56f06b
  130a4090_669d_40b7_28ec_e7c937c9c3b3["traverseScopeIdentifiers()"]
  9ecb747f_cf74_313d_4cec_4c32788af678 -->|calls| 130a4090_669d_40b7_28ec_e7c937c9c3b3
  4acb57df_5348_9aab_9691_41cf35127db4["visitScope()"]
  9ecb747f_cf74_313d_4cec_4c32788af678 -->|calls| 4acb57df_5348_9aab_9691_41cf35127db4
  style 9ecb747f_cf74_313d_4cec_4c32788af678 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PromoteUsedTemporaries.ts lines 151–154

  override visitScope(scope: ReactiveScopeBlock, state: State): void {
    this.traverseScope(scope, state);
    this.traverseScopeIdentifiers(scope.scope, state);
  }

Domain

Subdomains

Frequently Asked Questions

What does visitScope() do?
visitScope() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PromoteUsedTemporaries.ts.
Where is visitScope() defined?
visitScope() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PromoteUsedTemporaries.ts at line 151.
What does visitScope() call?
visitScope() calls 3 function(s): traverseScope, traverseScopeIdentifiers, visitScope.

Analyze Your Own Codebase

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

Try Supermodel Free