Home / Class/ FindAllScopesVisitor Class — react Architecture

FindAllScopesVisitor Class — react Architecture

Architecture documentation for the FindAllScopesVisitor class in AssertScopeInstructionsWithinScope.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  1aeeb3b2_fc46_1fae_4409_5de44baec2e5["FindAllScopesVisitor"]
  01cf585d_2384_4412_6dde_8416d27772a6["AssertScopeInstructionsWithinScope.ts"]
  1aeeb3b2_fc46_1fae_4409_5de44baec2e5 -->|defined in| 01cf585d_2384_4412_6dde_8416d27772a6
  2d5382a8_7222_7168_718e_0556c55a6482["visitScope()"]
  1aeeb3b2_fc46_1fae_4409_5de44baec2e5 -->|method| 2d5382a8_7222_7168_718e_0556c55a6482

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/AssertScopeInstructionsWithinScope.ts lines 55–60

class FindAllScopesVisitor extends ReactiveFunctionVisitor<Set<ScopeId>> {
  override visitScope(block: ReactiveScopeBlock, state: Set<ScopeId>): void {
    this.traverseScope(block, state);
    state.add(block.scope.id);
  }
}

Domain

Frequently Asked Questions

What is the FindAllScopesVisitor class?
FindAllScopesVisitor is a class in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/AssertScopeInstructionsWithinScope.ts.
Where is FindAllScopesVisitor defined?
FindAllScopesVisitor is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/AssertScopeInstructionsWithinScope.ts at line 55.

Analyze Your Own Codebase

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

Try Supermodel Free