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