Home / Function/ _staticInvariantTerminalHasFallthrough() — react Function Reference

_staticInvariantTerminalHasFallthrough() — react Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts lines 401–406

function _staticInvariantTerminalHasFallthrough(
  terminal: Terminal,
): BlockId | never | undefined {
  // If this fails, it is because a variant of Terminal is missing a fallthrough annotation
  return terminal.fallthrough;
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free