hasWarning() — react Function Reference
Architecture documentation for the hasWarning() function in CompilerError.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD ba5ba4d0_58f4_17ee_c3a5_b7febd428002["hasWarning()"] e51fd0d2_bb38_cc97_7763_efe37f300a47["CompilerError"] ba5ba4d0_58f4_17ee_c3a5_b7febd428002 -->|defined in| e51fd0d2_bb38_cc97_7763_efe37f300a47 style ba5ba4d0_58f4_17ee_c3a5_b7febd428002 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts lines 495–506
hasWarning(): boolean {
let res = false;
for (const detail of this.details) {
if (detail.severity === ErrorSeverity.Error) {
return false;
}
if (detail.severity === ErrorSeverity.Warning) {
res = true;
}
}
return res;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does hasWarning() do?
hasWarning() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts.
Where is hasWarning() defined?
hasWarning() is defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts at line 495.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free