appendFunctionErrors() — react Function Reference
Architecture documentation for the appendFunctionErrors() function in InferMutationAliasingRanges.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD f54dd966_4662_1205_ce47_174c3758a7ff["appendFunctionErrors()"] 99c95040_9e14_265b_aae3_b58b12a70d8d["InferMutationAliasingRanges.ts"] f54dd966_4662_1205_ce47_174c3758a7ff -->|defined in| 99c95040_9e14_265b_aae3_b58b12a70d8d a245d666_3ea2_209a_f47a_fe1e2c5a2577["render()"] a245d666_3ea2_209a_f47a_fe1e2c5a2577 -->|calls| f54dd966_4662_1205_ce47_174c3758a7ff cd8871a0_00ab_a3ba_98a3_61b6b75d973c["mutate()"] cd8871a0_00ab_a3ba_98a3_61b6b75d973c -->|calls| f54dd966_4662_1205_ce47_174c3758a7ff style f54dd966_4662_1205_ce47_174c3758a7ff fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingRanges.ts lines 556–567
function appendFunctionErrors(errors: CompilerError, fn: HIRFunction): void {
for (const effect of fn.aliasingEffects ?? []) {
switch (effect.kind) {
case 'Impure':
case 'MutateFrozen':
case 'MutateGlobal': {
errors.pushDiagnostic(effect.error);
break;
}
}
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does appendFunctionErrors() do?
appendFunctionErrors() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingRanges.ts.
Where is appendFunctionErrors() defined?
appendFunctionErrors() is defined in compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingRanges.ts at line 556.
What calls appendFunctionErrors()?
appendFunctionErrors() is called by 2 function(s): mutate, render.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free