Home / Function/ collectReferencedGlobals() — react Function Reference

collectReferencedGlobals() — react Function Reference

Architecture documentation for the collectReferencedGlobals() function in CollectReferencedGlobals.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  c56dfea4_2f2d_7a14_318e_471dcde25f80["collectReferencedGlobals()"]
  912711a8_8fb0_c4ab_294c_3ee046affe17["CollectReferencedGlobals.ts"]
  c56dfea4_2f2d_7a14_318e_471dcde25f80 -->|defined in| 912711a8_8fb0_c4ab_294c_3ee046affe17
  4ab9e061_3bbc_1bfe_a31f_6b25dd9e56cd["renameVariables()"]
  4ab9e061_3bbc_1bfe_a31f_6b25dd9e56cd -->|calls| c56dfea4_2f2d_7a14_318e_471dcde25f80
  2435b5f8_41a6_0458_ba88_4479b965455f["visitReactiveFunction()"]
  c56dfea4_2f2d_7a14_318e_471dcde25f80 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f
  style c56dfea4_2f2d_7a14_318e_471dcde25f80 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CollectReferencedGlobals.ts lines 15–19

export function collectReferencedGlobals(fn: ReactiveFunction): Set<string> {
  const identifiers = new Set<string>();
  visitReactiveFunction(fn, new Visitor(), identifiers);
  return identifiers;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does collectReferencedGlobals() do?
collectReferencedGlobals() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CollectReferencedGlobals.ts.
Where is collectReferencedGlobals() defined?
collectReferencedGlobals() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CollectReferencedGlobals.ts at line 15.
What does collectReferencedGlobals() call?
collectReferencedGlobals() calls 1 function(s): visitReactiveFunction.
What calls collectReferencedGlobals()?
collectReferencedGlobals() is called by 1 function(s): renameVariables.

Analyze Your Own Codebase

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

Try Supermodel Free