normalizeCodeLocInfo() — react Function Reference
Architecture documentation for the normalizeCodeLocInfo() function in ReactFlightServer-test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 28e1e6f5_e30c_eb97_7a94_7090e7d3cd9c["normalizeCodeLocInfo()"] 07c29cdb_30c5_77eb_256e_b42dfc3be5fb["ReactFlightServer-test.js"] 28e1e6f5_e30c_eb97_7a94_7090e7d3cd9c -->|defined in| 07c29cdb_30c5_77eb_256e_b42dfc3be5fb style 28e1e6f5_e30c_eb97_7a94_7090e7d3cd9c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-server/src/__tests__/ReactFlightServer-test.js lines 21–32
function normalizeCodeLocInfo(str) {
return (
str &&
str.replace(/^ +(?:at|in) ([\S]+)[^\n]*/gm, function (m, name) {
const dot = name.lastIndexOf('.');
if (dot !== -1) {
name = name.slice(dot + 1);
}
return ' in ' + name + (/\d/.test(m) ? ' (at **)' : '');
})
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does normalizeCodeLocInfo() do?
normalizeCodeLocInfo() is a function in the react codebase, defined in packages/react-server/src/__tests__/ReactFlightServer-test.js.
Where is normalizeCodeLocInfo() defined?
normalizeCodeLocInfo() is defined in packages/react-server/src/__tests__/ReactFlightServer-test.js at line 21.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free