printManualMemoDependency() — react Function Reference
Architecture documentation for the printManualMemoDependency() function in PrintHIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 7791fd4d_5296_2b3e_4771_a3069a4070ed["printManualMemoDependency()"] 6976a9ee_9d8e_4f16_3016_495f39aff2fd["PrintHIR.ts"] 7791fd4d_5296_2b3e_4771_a3069a4070ed -->|defined in| 6976a9ee_9d8e_4f16_3016_495f39aff2fd f3619b34_2818_79d3_d2a6_72b9bcfc9d1e["printInstructionValue()"] f3619b34_2818_79d3_d2a6_72b9bcfc9d1e -->|calls| 7791fd4d_5296_2b3e_4771_a3069a4070ed 6216fd83_7c2d_7eac_782b_6a1697ce7175["validateInferredDep()"] 6216fd83_7c2d_7eac_782b_6a1697ce7175 -->|calls| 7791fd4d_5296_2b3e_4771_a3069a4070ed 041ca752_10c1_3cda_1f5c_02f44a01310e["invariant()"] 7791fd4d_5296_2b3e_4771_a3069a4070ed -->|calls| 041ca752_10c1_3cda_1f5c_02f44a01310e e7a01d7c_c128_be66_a07d_007952a380da["printIdentifier()"] 7791fd4d_5296_2b3e_4771_a3069a4070ed -->|calls| e7a01d7c_c128_be66_a07d_007952a380da style 7791fd4d_5296_2b3e_4771_a3069a4070ed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts lines 861–878
export function printManualMemoDependency(
val: ManualMemoDependency,
nameOnly: boolean,
): string {
let rootStr;
if (val.root.kind === 'Global') {
rootStr = val.root.identifierName;
} else {
CompilerError.invariant(val.root.value.identifier.name?.kind === 'named', {
reason: 'DepsValidation: expected named local variable in depslist',
loc: val.root.value.loc,
});
rootStr = nameOnly
? val.root.value.identifier.name.value
: printIdentifier(val.root.value.identifier);
}
return `${rootStr}${val.path.map(v => `${v.optional ? '?.' : '.'}${v.property}`).join('')}`;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does printManualMemoDependency() do?
printManualMemoDependency() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts.
Where is printManualMemoDependency() defined?
printManualMemoDependency() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts at line 861.
What does printManualMemoDependency() call?
printManualMemoDependency() calls 2 function(s): invariant, printIdentifier.
What calls printManualMemoDependency()?
printManualMemoDependency() is called by 2 function(s): printInstructionValue, validateInferredDep.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free