Home / Class/ Transform Class — react Architecture

Transform Class — react Architecture

Architecture documentation for the Transform class in PruneAllReactiveScopes.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  1e81d1ca_2f66_a580_3636_c8afcfa0fd20["Transform"]
  745af7cc_abf6_a69f_776c_e9dacf9bcfc0["PruneAllReactiveScopes.ts"]
  1e81d1ca_2f66_a580_3636_c8afcfa0fd20 -->|defined in| 745af7cc_abf6_a69f_776c_e9dacf9bcfc0
  2be70513_8f10_6e51_ae23_94cfbef6ca0e["transformScope()"]
  1e81d1ca_2f66_a580_3636_c8afcfa0fd20 -->|method| 2be70513_8f10_6e51_ae23_94cfbef6ca0e

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneAllReactiveScopes.ts lines 28–36

class Transform extends ReactiveFunctionTransform<void> {
  override transformScope(
    scopeBlock: ReactiveScopeBlock,
    state: void,
  ): Transformed<ReactiveStatement> {
    this.visitScope(scopeBlock, state);
    return {kind: 'replace-many', value: scopeBlock.instructions};
  }
}

Domain

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free