assign() — react Function Reference
Architecture documentation for the assign() function in InferMutationAliasingEffects.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 953c4d58_4239_ada6_0ba7_cf09db9625fe["assign()"] 7f9a06c8_8e18_76fc_0edd_1f0d608aae44["InferenceState"] 953c4d58_4239_ada6_0ba7_cf09db9625fe -->|defined in| 7f9a06c8_8e18_76fc_0edd_1f0d608aae44 7cb90dd3_dbe0_0087_670d_277ddeadabfc["applyEffect()"] 7cb90dd3_dbe0_0087_670d_277ddeadabfc -->|calls| 953c4d58_4239_ada6_0ba7_cf09db9625fe 041ca752_10c1_3cda_1f5c_02f44a01310e["invariant()"] 953c4d58_4239_ada6_0ba7_cf09db9625fe -->|calls| 041ca752_10c1_3cda_1f5c_02f44a01310e e7a01d7c_c128_be66_a07d_007952a380da["printIdentifier()"] 953c4d58_4239_ada6_0ba7_cf09db9625fe -->|calls| e7a01d7c_c128_be66_a07d_007952a380da style 953c4d58_4239_ada6_0ba7_cf09db9625fe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingEffects.ts lines 1391–1400
assign(place: Place, value: Place): void {
const values = this.#variables.get(value.identifier.id);
CompilerError.invariant(values != null, {
reason: `[InferMutationAliasingEffects] Expected value for identifier to be initialized`,
description: `${printIdentifier(value.identifier)}`,
message: 'Expected value for identifier to be initialized',
loc: value.loc,
});
this.#variables.set(place.identifier.id, new Set(values));
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does assign() do?
assign() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingEffects.ts.
Where is assign() defined?
assign() is defined in compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingEffects.ts at line 1391.
What does assign() call?
assign() calls 2 function(s): invariant, printIdentifier.
What calls assign()?
assign() is called by 1 function(s): applyEffect.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free