printUnificationError() — react Function Reference
Architecture documentation for the printUnificationError() function in TypeErrors.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 17f69d0d_e4c0_8640_3524_a834e66c3fee["printUnificationError()"] 8086dd94_cb7f_b871_d873_325159c25b69["TypeErrors.ts"] 17f69d0d_e4c0_8640_3524_a834e66c3fee -->|defined in| 8086dd94_cb7f_b871_d873_325159c25b69 6d1b2d46_0ca2_05d3_a741_39438aeec04a["raiseUnificationErrors()"] 6d1b2d46_0ca2_05d3_a741_39438aeec04a -->|calls| 17f69d0d_e4c0_8640_3524_a834e66c3fee c0b647d9_982f_2dc6_de63_c350aa5665d4["printConcrete()"] 17f69d0d_e4c0_8640_3524_a834e66c3fee -->|calls| c0b647d9_982f_2dc6_de63_c350aa5665d4 style 17f69d0d_e4c0_8640_3524_a834e66c3fee fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Flood/TypeErrors.ts lines 33–39
function printUnificationError(err: UnificationError): string {
if (err.kind === 'TypeUnification') {
return `${printConcrete(err.left, printType)} is incompatible with ${printConcrete(err.right, printType)}`;
} else {
return `structural ${err.left.kind} is incompatible with ${printConcrete(err.right, printType)}`;
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does printUnificationError() do?
printUnificationError() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Flood/TypeErrors.ts.
Where is printUnificationError() defined?
printUnificationError() is defined in compiler/packages/babel-plugin-react-compiler/src/Flood/TypeErrors.ts at line 33.
What does printUnificationError() call?
printUnificationError() calls 1 function(s): printConcrete.
What calls printUnificationError()?
printUnificationError() is called by 1 function(s): raiseUnificationErrors.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free