Home / Function/ _staticInvariantTerminalHasLocation() — react Function Reference

_staticInvariantTerminalHasLocation() — react Function Reference

Architecture documentation for the _staticInvariantTerminalHasLocation() function in HIR.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  e5dd1dd5_6301_7f1b_be79_af5fe89c0b5b["_staticInvariantTerminalHasLocation()"]
  18a78965_f593_105b_e5e8_07001321c2ec["HIR.ts"]
  e5dd1dd5_6301_7f1b_be79_af5fe89c0b5b -->|defined in| 18a78965_f593_105b_e5e8_07001321c2ec
  style e5dd1dd5_6301_7f1b_be79_af5fe89c0b5b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts lines 387–392

function _staticInvariantTerminalHasLocation(
  terminal: Terminal,
): SourceLocation {
  // If this fails, it is because a variant of Terminal is missing a .loc - add it!
  return terminal.loc;
}

Subdomains

Frequently Asked Questions

What does _staticInvariantTerminalHasLocation() do?
_staticInvariantTerminalHasLocation() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts.
Where is _staticInvariantTerminalHasLocation() defined?
_staticInvariantTerminalHasLocation() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts at line 387.

Analyze Your Own Codebase

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

Try Supermodel Free