makeFirstThrowablePathInTryBlock() — react Function Reference
Architecture documentation for the makeFirstThrowablePathInTryBlock() function in code-path-state.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 1963d6ce_91bb_f67c_f0d9_c7097c58e194["makeFirstThrowablePathInTryBlock()"] d3cee22c_5e2d_f853_c075_2c7c55e5d22c["CodePathState"] 1963d6ce_91bb_f67c_f0d9_c7097c58e194 -->|defined in| d3cee22c_5e2d_f853_c075_2c7c55e5d22c d986cf23_ac32_702c_8619_6a4499c7dba5["getThrowContext()"] 1963d6ce_91bb_f67c_f0d9_c7097c58e194 -->|calls| d986cf23_ac32_702c_8619_6a4499c7dba5 style 1963d6ce_91bb_f67c_f0d9_c7097c58e194 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js lines 921–940
makeFirstThrowablePathInTryBlock() {
const forkContext = this.forkContext;
if (!forkContext.reachable) {
return;
}
const context = getThrowContext(this);
if (
context === this ||
context.position !== 'try' ||
!context.thrownForkContext.empty
) {
return;
}
context.thrownForkContext.add(forkContext.head);
forkContext.replaceHead(forkContext.makeNext(-1, -1));
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does makeFirstThrowablePathInTryBlock() do?
makeFirstThrowablePathInTryBlock() is a function in the react codebase, defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js.
Where is makeFirstThrowablePathInTryBlock() defined?
makeFirstThrowablePathInTryBlock() is defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js at line 921.
What does makeFirstThrowablePathInTryBlock() call?
makeFirstThrowablePathInTryBlock() calls 1 function(s): getThrowContext.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free