getFlowSuppressions() — react Function Reference
Architecture documentation for the getFlowSuppressions() function in RunReactCompiler.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 3b279355_1122_eec7_78a2_e5c73c152b88["getFlowSuppressions()"] 0e801e17_9dc9_7a83_ce0f_d28b56e090f5["RunReactCompiler.ts"] 3b279355_1122_eec7_78a2_e5c73c152b88 -->|defined in| 0e801e17_9dc9_7a83_ce0f_d28b56e090f5 a65ef042_f6cf_f635_9ce4_aa7d8d0ecb18["runReactCompilerImpl()"] a65ef042_f6cf_f635_9ce4_aa7d8d0ecb18 -->|calls| 3b279355_1122_eec7_78a2_e5c73c152b88 14b7faa8_3b52_8cd7_c4d1_996ed950dc7f["push()"] 3b279355_1122_eec7_78a2_e5c73c152b88 -->|calls| 14b7faa8_3b52_8cd7_c4d1_996ed950dc7f style 3b279355_1122_eec7_78a2_e5c73c152b88 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/eslint-plugin-react-hooks/src/shared/RunReactCompiler.ts lines 161–180
function getFlowSuppressions(
sourceCode: SourceCode,
): Array<{line: number; code: string}> {
const comments = sourceCode.getAllComments();
const results: Array<{line: number; code: string}> = [];
for (const commentNode of comments) {
const matches = commentNode.value.matchAll(FLOW_SUPPRESSION_REGEX);
for (const match of matches) {
if (match.index != null && commentNode.loc != null) {
const code = match[1];
results.push({
line: commentNode.loc!.end.line,
code,
});
}
}
}
return results;
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does getFlowSuppressions() do?
getFlowSuppressions() is a function in the react codebase, defined in packages/eslint-plugin-react-hooks/src/shared/RunReactCompiler.ts.
Where is getFlowSuppressions() defined?
getFlowSuppressions() is defined in packages/eslint-plugin-react-hooks/src/shared/RunReactCompiler.ts at line 161.
What does getFlowSuppressions() call?
getFlowSuppressions() calls 1 function(s): push.
What calls getFlowSuppressions()?
getFlowSuppressions() is called by 1 function(s): runReactCompilerImpl.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free