Home / Function/ pushErrorDetail() — react Function Reference

pushErrorDetail() — react Function Reference

Architecture documentation for the pushErrorDetail() function in CompilerError.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  825ba705_282a_7031_34fa_49b26f1c9bed["pushErrorDetail()"]
  e51fd0d2_bb38_cc97_7763_efe37f300a47["CompilerError"]
  825ba705_282a_7031_34fa_49b26f1c9bed -->|defined in| e51fd0d2_bb38_cc97_7763_efe37f300a47
  cf8d627e_c2f0_6cd4_e5fc_35f3c7005b64["throwTodo()"]
  cf8d627e_c2f0_6cd4_e5fc_35f3c7005b64 -->|calls| 825ba705_282a_7031_34fa_49b26f1c9bed
  4c1b8e2a_6a7c_702c_3acd_bbaa1cbcdc27["throwInvalidJS()"]
  4c1b8e2a_6a7c_702c_3acd_bbaa1cbcdc27 -->|calls| 825ba705_282a_7031_34fa_49b26f1c9bed
  73346565_783f_1426_1d29_3d461dabc0a1["throwInvalidReact()"]
  73346565_783f_1426_1d29_3d461dabc0a1 -->|calls| 825ba705_282a_7031_34fa_49b26f1c9bed
  f4dabc03_d648_e2d6_19ef_83872ae711d3["throwInvalidConfig()"]
  f4dabc03_d648_e2d6_19ef_83872ae711d3 -->|calls| 825ba705_282a_7031_34fa_49b26f1c9bed
  f22aa897_9419_712a_d84d_eb9e8581801f["throw()"]
  f22aa897_9419_712a_d84d_eb9e8581801f -->|calls| 825ba705_282a_7031_34fa_49b26f1c9bed
  073c81a5_c389_d108_5b8f_4d6dc6eece83["push()"]
  073c81a5_c389_d108_5b8f_4d6dc6eece83 -->|calls| 825ba705_282a_7031_34fa_49b26f1c9bed
  1c9af54b_10e9_8985_e772_1f517e46c560["compileProgram()"]
  1c9af54b_10e9_8985_e772_1f517e46c560 -->|calls| 825ba705_282a_7031_34fa_49b26f1c9bed
  9e49688f_6b43_84fe_0dd2_18e5142c1f71["shouldSkipCompilation()"]
  9e49688f_6b43_84fe_0dd2_18e5142c1f71 -->|calls| 825ba705_282a_7031_34fa_49b26f1c9bed
  6eadf343_46d9_d614_1b21_1060f09386fc["validateHooksUsage()"]
  6eadf343_46d9_d614_1b21_1060f09386fc -->|calls| 825ba705_282a_7031_34fa_49b26f1c9bed
  450e9fa3_e9b3_e461_c1b5_503df5ad4c02["visitFunctionExpression()"]
  450e9fa3_e9b3_e461_c1b5_503df5ad4c02 -->|calls| 825ba705_282a_7031_34fa_49b26f1c9bed
  073c81a5_c389_d108_5b8f_4d6dc6eece83["push()"]
  825ba705_282a_7031_34fa_49b26f1c9bed -->|calls| 073c81a5_c389_d108_5b8f_4d6dc6eece83
  style 825ba705_282a_7031_34fa_49b26f1c9bed fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts lines 463–470

  pushErrorDetail(detail: CompilerErrorDetail): CompilerErrorDetail {
    if (detail.severity === ErrorSeverity.Off) {
      this.disabledDetails.push(detail);
    } else {
      this.details.push(detail);
    }
    return detail;
  }

Domain

Subdomains

Calls

Frequently Asked Questions

What does pushErrorDetail() do?
pushErrorDetail() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts.
Where is pushErrorDetail() defined?
pushErrorDetail() is defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts at line 463.
What does pushErrorDetail() call?
pushErrorDetail() calls 1 function(s): push.
What calls pushErrorDetail()?
pushErrorDetail() is called by 10 function(s): compileProgram, push, shouldSkipCompilation, throw, throwInvalidConfig, throwInvalidJS, throwInvalidReact, throwTodo, and 2 more.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free