Home / Function/ hasBackEdge() — react Function Reference

hasBackEdge() — react Function Reference

Architecture documentation for the hasBackEdge() function in DeadCodeElimination.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  4a0b4496_ef3b_6781_ecef_edfb88dec63e["hasBackEdge()"]
  12a58551_b77c_3215_7e97_0c27aabd262e["DeadCodeElimination.ts"]
  4a0b4496_ef3b_6781_ecef_edfb88dec63e -->|defined in| 12a58551_b77c_3215_7e97_0c27aabd262e
  b86031b6_78ac_d498_c775_7aedeaf6521e["findReferencedIdentifiers()"]
  b86031b6_78ac_d498_c775_7aedeaf6521e -->|calls| 4a0b4496_ef3b_6781_ecef_edfb88dec63e
  4fa818eb_1b6b_0801_60ce_ac53ef820a96["findBlocksWithBackEdges()"]
  4a0b4496_ef3b_6781_ecef_edfb88dec63e -->|calls| 4fa818eb_1b6b_0801_60ce_ac53ef820a96
  style 4a0b4496_ef3b_6781_ecef_edfb88dec63e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/Optimization/DeadCodeElimination.ts lines 410–412

export function hasBackEdge(fn: HIRFunction): boolean {
  return findBlocksWithBackEdges(fn).size > 0;
}

Domain

Subdomains

Frequently Asked Questions

What does hasBackEdge() do?
hasBackEdge() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Optimization/DeadCodeElimination.ts.
Where is hasBackEdge() defined?
hasBackEdge() is defined in compiler/packages/babel-plugin-react-compiler/src/Optimization/DeadCodeElimination.ts at line 410.
What does hasBackEdge() call?
hasBackEdge() calls 1 function(s): findBlocksWithBackEdges.
What calls hasBackEdge()?
hasBackEdge() is called by 1 function(s): findReferencedIdentifiers.

Analyze Your Own Codebase

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

Try Supermodel Free