withDetails() — react Function Reference
Architecture documentation for the withDetails() function in CompilerError.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 1a2b7047_24c8_62d6_b328_5f07307d27ab["withDetails()"] 0fda7f86_b7a3_c1f2_f0d9_8d13eed4f042["CompilerDiagnostic"] 1a2b7047_24c8_62d6_b328_5f07307d27ab -->|defined in| 0fda7f86_b7a3_c1f2_f0d9_8d13eed4f042 041ca752_10c1_3cda_1f5c_02f44a01310e["invariant()"] 041ca752_10c1_3cda_1f5c_02f44a01310e -->|calls| 1a2b7047_24c8_62d6_b328_5f07307d27ab d31deb45_fb36_194b_4bb5_e81a98b6c9bd["suppressionsToCompilerError()"] d31deb45_fb36_194b_4bb5_e81a98b6c9bd -->|calls| 1a2b7047_24c8_62d6_b328_5f07307d27ab f214c28b_2f6d_b5a3_71e1_9a69d9b50455["lower()"] f214c28b_2f6d_b5a3_71e1_9a69d9b50455 -->|calls| 1a2b7047_24c8_62d6_b328_5f07307d27ab 9e5aefd1_7874_4324_24ab_a9f3d944decf["validateIdentifierName()"] 9e5aefd1_7874_4324_24ab_a9f3d944decf -->|calls| 1a2b7047_24c8_62d6_b328_5f07307d27ab 39c5a476_7a02_eb77_deeb_828d88fc0da0["extractManualMemoizationArgs()"] 39c5a476_7a02_eb77_deeb_828d88fc0da0 -->|calls| 1a2b7047_24c8_62d6_b328_5f07307d27ab dad92af5_71c7_94b3_8cce_ac3af87f3e61["dropManualMemoization()"] dad92af5_71c7_94b3_8cce_ac3af87f3e61 -->|calls| 1a2b7047_24c8_62d6_b328_5f07307d27ab f255dd41_8c48_19a9_1bcc_8efd2d663f32["applySignature()"] f255dd41_8c48_19a9_1bcc_8efd2d663f32 -->|calls| 1a2b7047_24c8_62d6_b328_5f07307d27ab 7cb90dd3_dbe0_0087_670d_277ddeadabfc["applyEffect()"] 7cb90dd3_dbe0_0087_670d_277ddeadabfc -->|calls| 1a2b7047_24c8_62d6_b328_5f07307d27ab a00426de_5aa3_d680_a1fe_29201ff58984["computeSignatureForInstruction()"] a00426de_5aa3_d680_a1fe_29201ff58984 -->|calls| 1a2b7047_24c8_62d6_b328_5f07307d27ab fc22e84f_49a6_8d04_faba_43cbf926c0aa["computeEffectsForLegacySignature()"] fc22e84f_49a6_8d04_faba_43cbf926c0aa -->|calls| 1a2b7047_24c8_62d6_b328_5f07307d27ab 6869984f_c56b_62c6_1328_06ff93395ab4["validateDependencies()"] 6869984f_c56b_62c6_1328_06ff93395ab4 -->|calls| 1a2b7047_24c8_62d6_b328_5f07307d27ab 42a1b6ad_eddb_6bd3_4831_1d199766f971["validateLocalsNotReassignedAfterRender()"] 42a1b6ad_eddb_6bd3_4831_1d199766f971 -->|calls| 1a2b7047_24c8_62d6_b328_5f07307d27ab 176abc6d_b49b_3a9c_1432_7b5b6d45f2ac["getContextReassignment()"] 176abc6d_b49b_3a9c_1432_7b5b6d45f2ac -->|calls| 1a2b7047_24c8_62d6_b328_5f07307d27ab style 1a2b7047_24c8_62d6_b328_5f07307d27ab fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts lines 151–154
withDetails(...details: Array<CompilerDiagnosticDetail>): CompilerDiagnostic {
this.options.details.push(...details);
return this;
}
Domain
Subdomains
Calls
Called By
- applyEffect()
- applySignature()
- computeEffectsForLegacySignature()
- computeSignatureForInstruction()
- dropManualMemoization()
- extractManualMemoizationArgs()
- getContextReassignment()
- guardCheck()
- invariant()
- lower()
- suppressionsToCompilerError()
- validateDependencies()
- validateEffect()
- validateIdentifierName()
- validateInferredDep()
- validateLocalsNotReassignedAfterRender()
- validateNoContextVariableAssignment()
- validateNoDirectRefValueAccess()
- validateNoFreezingKnownMutableFunctions()
- validateNoImpureFunctionsInRender()
- validateNoJSXInTryStatement()
- validateNoRefAccessInRenderImpl()
- validateNoRefPassedToFunction()
- validateNoRefUpdate()
- validateNoRefValueAccess()
- validateNoSetStateInEffects()
- validateNoSetStateInRenderImpl()
- validateStaticComponents()
- validateUseMemo()
- visitInstruction()
Source
Frequently Asked Questions
What does withDetails() do?
withDetails() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts.
Where is withDetails() defined?
withDetails() is defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts at line 151.
What does withDetails() call?
withDetails() calls 1 function(s): push.
What calls withDetails()?
withDetails() is called by 30 function(s): applyEffect, applySignature, computeEffectsForLegacySignature, computeSignatureForInstruction, dropManualMemoization, extractManualMemoizationArgs, getContextReassignment, guardCheck, and 22 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free