prettyPrintScopeDependency() — react Function Reference
Architecture documentation for the prettyPrintScopeDependency() function in ValidatePreservedManualMemoization.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 9cc8d7c1_31b9_c406_4383_965a12142dd4["prettyPrintScopeDependency()"] 24b95621_3482_c406_4b63_5b9d9e94b5af["ValidatePreservedManualMemoization.ts"] 9cc8d7c1_31b9_c406_4383_965a12142dd4 -->|defined in| 24b95621_3482_c406_4b63_5b9d9e94b5af 6216fd83_7c2d_7eac_782b_6a1697ce7175["validateInferredDep()"] 6216fd83_7c2d_7eac_782b_6a1697ce7175 -->|calls| 9cc8d7c1_31b9_c406_4383_965a12142dd4 8e8b7ee8_d3c2_f98d_17e1_c5ff5fff1940["map()"] 9cc8d7c1_31b9_c406_4383_965a12142dd4 -->|calls| 8e8b7ee8_d3c2_f98d_17e1_c5ff5fff1940 style 9cc8d7c1_31b9_c406_4383_965a12142dd4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Validation/ValidatePreservedManualMemoization.ts lines 120–128
function prettyPrintScopeDependency(val: ReactiveScopeDependency): string {
let rootStr;
if (val.identifier.name?.kind === 'named') {
rootStr = val.identifier.name.value;
} else {
rootStr = '[unnamed]';
}
return `${rootStr}${val.path.map(v => `${v.optional ? '?.' : '.'}${v.property}`).join('')}`;
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does prettyPrintScopeDependency() do?
prettyPrintScopeDependency() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Validation/ValidatePreservedManualMemoization.ts.
Where is prettyPrintScopeDependency() defined?
prettyPrintScopeDependency() is defined in compiler/packages/babel-plugin-react-compiler/src/Validation/ValidatePreservedManualMemoization.ts at line 120.
What does prettyPrintScopeDependency() call?
prettyPrintScopeDependency() calls 1 function(s): map.
What calls prettyPrintScopeDependency()?
prettyPrintScopeDependency() is called by 1 function(s): validateInferredDep.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free