throwDiagnostic() — react Function Reference
Architecture documentation for the throwDiagnostic() function in CompilerError.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD eaa25847_803a_a160_25ce_fa2699f69d1c["throwDiagnostic()"] e51fd0d2_bb38_cc97_7763_efe37f300a47["CompilerError"] eaa25847_803a_a160_25ce_fa2699f69d1c -->|defined in| e51fd0d2_bb38_cc97_7763_efe37f300a47 6f61e521_79f8_315c_2443_8700d7e01eaa["validateNoDynamicallyCreatedComponentsOrHooks()"] 6f61e521_79f8_315c_2443_8700d7e01eaa -->|calls| eaa25847_803a_a160_25ce_fa2699f69d1c fd74cbf5_70fe_dfe3_61f3_388ace207e52["throwInvalidReact()"] fd74cbf5_70fe_dfe3_61f3_388ace207e52 -->|calls| eaa25847_803a_a160_25ce_fa2699f69d1c ace1177a_10b2_b870_31fd_da4aa845554c["lowerExpression()"] ace1177a_10b2_b870_31fd_da4aa845554c -->|calls| eaa25847_803a_a160_25ce_fa2699f69d1c cf4d0005_5527_42f1_2412_741dbace1899["resolveBinding()"] cf4d0005_5527_42f1_2412_741dbace1899 -->|calls| eaa25847_803a_a160_25ce_fa2699f69d1c 02303def_636f_c5b3_a751_1cf138fcea69["pushDiagnostic()"] eaa25847_803a_a160_25ce_fa2699f69d1c -->|calls| 02303def_636f_c5b3_a751_1cf138fcea69 style eaa25847_803a_a160_25ce_fa2699f69d1c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts lines 333–337
static throwDiagnostic(options: CompilerDiagnosticOptions): never {
const errors = new CompilerError();
errors.pushDiagnostic(new CompilerDiagnostic(options));
throw errors;
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does throwDiagnostic() do?
throwDiagnostic() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts.
Where is throwDiagnostic() defined?
throwDiagnostic() is defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts at line 333.
What does throwDiagnostic() call?
throwDiagnostic() calls 1 function(s): pushDiagnostic.
What calls throwDiagnostic()?
throwDiagnostic() is called by 4 function(s): lowerExpression, resolveBinding, throwInvalidReact, validateNoDynamicallyCreatedComponentsOrHooks.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free