normalizeSourceLoc() — react Function Reference
Architecture documentation for the normalizeSourceLoc() function in ReactHooksInspectionIntegrationDOM-test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD c331f866_f135_cd4f_5650_8e8799617c6c["normalizeSourceLoc()"] a71ad9ab_6af1_3d1f_7550_2ec6732d9264["ReactHooksInspectionIntegrationDOM-test.js"] c331f866_f135_cd4f_5650_8e8799617c6c -->|defined in| a71ad9ab_6af1_3d1f_7550_2ec6732d9264 style c331f866_f135_cd4f_5650_8e8799617c6c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegrationDOM-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__/ReactHooksInspectionIntegrationDOM-test.js.
Where is normalizeSourceLoc() defined?
normalizeSourceLoc() is defined in packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegrationDOM-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