Home / Function/ getFlowSuppressions() — react Function Reference

getFlowSuppressions() — react Function Reference

Architecture documentation for the getFlowSuppressions() function in RunReactCompiler.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  c02d6141_e360_93d6_94e3_eaf0d62ae725["getFlowSuppressions()"]
  89cb905c_f265_dff8_af63_80bce1ed14d5["RunReactCompiler.ts"]
  c02d6141_e360_93d6_94e3_eaf0d62ae725 -->|defined in| 89cb905c_f265_dff8_af63_80bce1ed14d5
  7559d814_7e54_c594_1cb0_7981b9a39014["runReactCompilerImpl()"]
  7559d814_7e54_c594_1cb0_7981b9a39014 -->|calls| c02d6141_e360_93d6_94e3_eaf0d62ae725
  1cd57ded_091d_6a0d_a9a6_3b20dd7cdf8f["push()"]
  c02d6141_e360_93d6_94e3_eaf0d62ae725 -->|calls| 1cd57ded_091d_6a0d_a9a6_3b20dd7cdf8f
  style c02d6141_e360_93d6_94e3_eaf0d62ae725 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/eslint-plugin-react-compiler/src/shared/RunReactCompiler.ts lines 59–78

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

Frequently Asked Questions

What does getFlowSuppressions() do?
getFlowSuppressions() is a function in the react codebase, defined in compiler/packages/eslint-plugin-react-compiler/src/shared/RunReactCompiler.ts.
Where is getFlowSuppressions() defined?
getFlowSuppressions() is defined in compiler/packages/eslint-plugin-react-compiler/src/shared/RunReactCompiler.ts at line 59.
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