finalizeTestSegmentsOfFor() — react Function Reference
Architecture documentation for the finalizeTestSegmentsOfFor() function in code-path-state.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 9b61c605_e800_3e20_0964_f24f896ebf43["finalizeTestSegmentsOfFor()"] 6e2aa007_860b_49d4_8a7b_6b55d63818e5["code-path-state.js"] 9b61c605_e800_3e20_0964_f24f896ebf43 -->|defined in| 6e2aa007_860b_49d4_8a7b_6b55d63818e5 45535d1f_482a_b979_c75d_6d69099f5408["makeForUpdate()"] 45535d1f_482a_b979_c75d_6d69099f5408 -->|calls| 9b61c605_e800_3e20_0964_f24f896ebf43 7dfff945_2de0_14ee_52c3_45df02bdd036["makeForBody()"] 7dfff945_2de0_14ee_52c3_45df02bdd036 -->|calls| 9b61c605_e800_3e20_0964_f24f896ebf43 style 9b61c605_e800_3e20_0964_f24f896ebf43 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js lines 202–213
function finalizeTestSegmentsOfFor(context, choiceContext, head) {
if (!choiceContext.processed) {
choiceContext.trueForkContext.add(head);
choiceContext.falseForkContext.add(head);
choiceContext.qqForkContext.add(head);
}
if (context.test !== true) {
context.brokenForkContext.addAll(choiceContext.falseForkContext);
}
context.endOfTestSegments = choiceContext.trueForkContext.makeNext(0, -1);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does finalizeTestSegmentsOfFor() do?
finalizeTestSegmentsOfFor() is a function in the react codebase, defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js.
Where is finalizeTestSegmentsOfFor() defined?
finalizeTestSegmentsOfFor() is defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js at line 202.
What calls finalizeTestSegmentsOfFor()?
finalizeTestSegmentsOfFor() is called by 2 function(s): makeForBody, makeForUpdate.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free