rangePreOrderComparator() — react Function Reference
Architecture documentation for the rangePreOrderComparator() function in AssertValidBlockNesting.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 6990f5e1_932c_dac6_c479_5305e79dfcb9["rangePreOrderComparator()"] 5dff208f_71b7_72c1_b78a_03be9b621b2a["AssertValidBlockNesting.ts"] 6990f5e1_932c_dac6_c479_5305e79dfcb9 -->|defined in| 5dff208f_71b7_72c1_b78a_03be9b621b2a 170cf454_aca5_0b9b_0991_4b81319b731b["recursivelyTraverseItems()"] 170cf454_aca5_0b9b_0991_4b81319b731b -->|calls| 6990f5e1_932c_dac6_c479_5305e79dfcb9 style 6990f5e1_932c_dac6_c479_5305e79dfcb9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/AssertValidBlockNesting.ts lines 104–111
export function rangePreOrderComparator(
a: MutableRange,
b: MutableRange,
): number {
const startDiff = a.start - b.start;
if (startDiff !== 0) return startDiff;
return b.end - a.end;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does rangePreOrderComparator() do?
rangePreOrderComparator() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/AssertValidBlockNesting.ts.
Where is rangePreOrderComparator() defined?
rangePreOrderComparator() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/AssertValidBlockNesting.ts at line 104.
What calls rangePreOrderComparator()?
rangePreOrderComparator() is called by 1 function(s): recursivelyTraverseItems.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free