printManualMemoDependency() — react Function Reference
Architecture documentation for the printManualMemoDependency() function in ValidateExhaustiveDependencies.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 6dd3b317_40c0_299f_aba0_a14aed85c55f["printManualMemoDependency()"] 6bd4cea3_f214_b2ef_722d_79dc0c7aa5d2["ValidateExhaustiveDependencies.ts"] 6dd3b317_40c0_299f_aba0_a14aed85c55f -->|defined in| 6bd4cea3_f214_b2ef_722d_79dc0c7aa5d2 b42a89d6_3831_7611_0620_5df011ebe6ba["validateDependencies()"] b42a89d6_3831_7611_0620_5df011ebe6ba -->|calls| 6dd3b317_40c0_299f_aba0_a14aed85c55f 54d623b1_ac7c_dd74_8b03_de9e93a36587["invariant()"] 6dd3b317_40c0_299f_aba0_a14aed85c55f -->|calls| 54d623b1_ac7c_dd74_8b03_de9e93a36587 28a3684c_b5a5_8d21_af43_08e51dda5f53["map()"] 6dd3b317_40c0_299f_aba0_a14aed85c55f -->|calls| 28a3684c_b5a5_8d21_af43_08e51dda5f53 style 6dd3b317_40c0_299f_aba0_a14aed85c55f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Validation/ValidateExhaustiveDependencies.ts lines 886–899
function printManualMemoDependency(dep: ManualMemoDependency): string {
let identifierName: string;
if (dep.root.kind === 'Global') {
identifierName = dep.root.identifierName;
} else {
const name = dep.root.value.identifier.name;
CompilerError.invariant(name != null && name.kind === 'named', {
reason: 'Expected manual dependencies to be named variables',
loc: dep.root.value.loc,
});
identifierName = name.value;
}
return `${identifierName}${dep.path.map(p => (p.optional ? '?' : '') + '.' + p.property).join('')}`;
}
Domain
Subdomains
Defined In
Calls
Called By
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/Validation/ValidateExhaustiveDependencies.ts.
Where is printManualMemoDependency() defined?
printManualMemoDependency() is defined in compiler/packages/babel-plugin-react-compiler/src/Validation/ValidateExhaustiveDependencies.ts at line 886.
What does printManualMemoDependency() call?
printManualMemoDependency() calls 2 function(s): invariant, map.
What calls printManualMemoDependency()?
printManualMemoDependency() is called by 1 function(s): validateDependencies.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free