printErrorSummary() — react Function Reference
Architecture documentation for the printErrorSummary() function in CompilerError.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 4767de0a_dba6_b3df_77df_2b909825c02d["printErrorSummary()"] e96f281e_f381_272d_2359_3e6a091c9a1d["CompilerError.ts"] 4767de0a_dba6_b3df_77df_2b909825c02d -->|defined in| e96f281e_f381_272d_2359_3e6a091c9a1d e39dece3_8891_8533_6625_5397539eb098["printErrorMessage()"] e39dece3_8891_8533_6625_5397539eb098 -->|calls| 4767de0a_dba6_b3df_77df_2b909825c02d 00c689b1_d881_800b_f1df_076ada6a2c75["toString()"] 00c689b1_d881_800b_f1df_076ada6a2c75 -->|calls| 4767de0a_dba6_b3df_77df_2b909825c02d 87c7e084_efd0_e72a_89ba_0eea447fbc45["printErrorMessage()"] 87c7e084_efd0_e72a_89ba_0eea447fbc45 -->|calls| 4767de0a_dba6_b3df_77df_2b909825c02d 6983a759_4292_21b5_9f66_54a811585642["toString()"] 6983a759_4292_21b5_9f66_54a811585642 -->|calls| 4767de0a_dba6_b3df_77df_2b909825c02d d7fde76c_4fd9_feb3_299b_798689f05bc6["assertExhaustive()"] 4767de0a_dba6_b3df_77df_2b909825c02d -->|calls| d7fde76c_4fd9_feb3_299b_798689f05bc6 style 4767de0a_dba6_b3df_77df_2b909825c02d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts lines 565–614
function printErrorSummary(category: ErrorCategory, message: string): string {
let heading: string;
switch (category) {
case ErrorCategory.AutomaticEffectDependencies:
case ErrorCategory.CapitalizedCalls:
case ErrorCategory.Config:
case ErrorCategory.EffectDerivationsOfState:
case ErrorCategory.EffectSetState:
case ErrorCategory.ErrorBoundaries:
case ErrorCategory.Factories:
case ErrorCategory.FBT:
case ErrorCategory.Fire:
case ErrorCategory.Gating:
case ErrorCategory.Globals:
case ErrorCategory.Hooks:
case ErrorCategory.Immutability:
case ErrorCategory.Purity:
case ErrorCategory.Refs:
case ErrorCategory.RenderSetState:
case ErrorCategory.StaticComponents:
case ErrorCategory.Suppression:
case ErrorCategory.Syntax:
case ErrorCategory.UseMemo:
case ErrorCategory.VoidUseMemo:
case ErrorCategory.MemoDependencies:
case ErrorCategory.EffectExhaustiveDependencies: {
heading = 'Error';
break;
}
case ErrorCategory.EffectDependencies:
case ErrorCategory.IncompatibleLibrary:
case ErrorCategory.PreserveManualMemo:
case ErrorCategory.UnsupportedSyntax: {
heading = 'Compilation Skipped';
break;
}
case ErrorCategory.Invariant: {
heading = 'Invariant';
break;
}
case ErrorCategory.Todo: {
heading = 'Todo';
break;
}
default: {
assertExhaustive(category, `Unhandled category '${category}'`);
}
}
return `${heading}: ${message}`;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does printErrorSummary() do?
printErrorSummary() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts.
Where is printErrorSummary() defined?
printErrorSummary() is defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts at line 565.
What does printErrorSummary() call?
printErrorSummary() calls 1 function(s): assertExhaustive.
What calls printErrorSummary()?
printErrorSummary() is called by 4 function(s): printErrorMessage, printErrorMessage, toString, toString.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free