makeForInOfRight() — react Function Reference
Architecture documentation for the makeForInOfRight() function in code-path-state.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 37bc2733_785d_abd1_eb5a_464acaa9ef2c["makeForInOfRight()"] d3cee22c_5e2d_f853_c075_2c7c55e5d22c["CodePathState"] 37bc2733_785d_abd1_eb5a_464acaa9ef2c -->|defined in| d3cee22c_5e2d_f853_c075_2c7c55e5d22c style 37bc2733_785d_abd1_eb5a_464acaa9ef2c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js lines 1258–1269
makeForInOfRight() {
const context = this.loopContext;
const forkContext = this.forkContext;
const temp = ForkContext.newEmpty(forkContext);
temp.add(context.prevSegments);
const rightSegments = temp.makeNext(-1, -1);
// Update state.
context.endOfLeftSegments = forkContext.head;
forkContext.replaceHead(rightSegments);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does makeForInOfRight() do?
makeForInOfRight() is a function in the react codebase, defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js.
Where is makeForInOfRight() defined?
makeForInOfRight() is defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js at line 1258.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free