Home / Function/ transformPrunedScope() — react Function Reference

transformPrunedScope() — react Function Reference

Architecture documentation for the transformPrunedScope() function in visitors.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  8946cc05_a03c_56f3_cb49_bb83d2f49a8d["transformPrunedScope()"]
  af3ace55_db6d_865e_92b9_81486f6af1e7["ReactiveFunctionTransform"]
  8946cc05_a03c_56f3_cb49_bb83d2f49a8d -->|defined in| af3ace55_db6d_865e_92b9_81486f6af1e7
  a0320514_135c_2cd9_31b2_7e30472da86b["traverseBlock()"]
  a0320514_135c_2cd9_31b2_7e30472da86b -->|calls| 8946cc05_a03c_56f3_cb49_bb83d2f49a8d
  6170a433_a27a_7455_6589_a23a789d4771["visitPrunedScope()"]
  8946cc05_a03c_56f3_cb49_bb83d2f49a8d -->|calls| 6170a433_a27a_7455_6589_a23a789d4771
  style 8946cc05_a03c_56f3_cb49_bb83d2f49a8d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/visitors.ts lines 352–358

  transformPrunedScope(
    scope: PrunedReactiveScopeBlock,
    state: TState,
  ): Transformed<ReactiveStatement> {
    this.visitPrunedScope(scope, state);
    return {kind: 'keep'};
  }

Domain

Subdomains

Called By

Frequently Asked Questions

What does transformPrunedScope() do?
transformPrunedScope() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/visitors.ts.
Where is transformPrunedScope() defined?
transformPrunedScope() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/visitors.ts at line 352.
What does transformPrunedScope() call?
transformPrunedScope() calls 1 function(s): visitPrunedScope.
What calls transformPrunedScope()?
transformPrunedScope() is called by 1 function(s): traverseBlock.

Analyze Your Own Codebase

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

Try Supermodel Free