normalizeSourceLoc() — react Function Reference
Architecture documentation for the normalizeSourceLoc() function in ReactHooksInspectionIntegration-test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD a1bb33e6_e00a_a98b_c52b_fea557266219["normalizeSourceLoc()"] f26d1eb4_3da8_baa4_ca1c_dbbf00ebdb81["ReactHooksInspectionIntegration-test.js"] a1bb33e6_e00a_a98b_c52b_fea557266219 -->|defined in| f26d1eb4_3da8_baa4_ca1c_dbbf00ebdb81 style a1bb33e6_e00a_a98b_c52b_fea557266219 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js lines 19–29
function normalizeSourceLoc(tree) {
tree.forEach(node => {
if (node.hookSource) {
node.hookSource.fileName = '**';
node.hookSource.lineNumber = 0;
node.hookSource.columnNumber = 0;
}
normalizeSourceLoc(node.subHooks);
});
return tree;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does normalizeSourceLoc() do?
normalizeSourceLoc() is a function in the react codebase, defined in packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js.
Where is normalizeSourceLoc() defined?
normalizeSourceLoc() is defined in packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js at line 19.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free