Home / Function/ hasErrors() — react Function Reference

hasErrors() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  f934923b_6a3e_86c4_15a3_f2d28d845e7c["hasErrors()"]
  e51fd0d2_bb38_cc97_7763_efe37f300a47["CompilerError"]
  f934923b_6a3e_86c4_15a3_f2d28d845e7c -->|defined in| e51fd0d2_bb38_cc97_7763_efe37f300a47
  264063c3_b362_64c4_c5db_e32a7b08f3fe["isError()"]
  264063c3_b362_64c4_c5db_e32a7b08f3fe -->|calls| f934923b_6a3e_86c4_15a3_f2d28d845e7c
  61bac3c3_d338_97b0_70fd_5bd6924abfa9["hasErrors()"]
  61bac3c3_d338_97b0_70fd_5bd6924abfa9 -->|calls| f934923b_6a3e_86c4_15a3_f2d28d845e7c
  style f934923b_6a3e_86c4_15a3_f2d28d845e7c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts lines 483–490

  hasErrors(): boolean {
    for (const detail of this.details) {
      if (detail.severity === ErrorSeverity.Error) {
        return true;
      }
    }
    return false;
  }

Domain

Subdomains

Frequently Asked Questions

What does hasErrors() do?
hasErrors() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts.
Where is hasErrors() defined?
hasErrors() is defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts at line 483.
What calls hasErrors()?
hasErrors() is called by 2 function(s): hasErrors, isError.

Analyze Your Own Codebase

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

Try Supermodel Free