Home / Function/ normalizeCodeLocInfo() — react Function Reference

normalizeCodeLocInfo() — react Function Reference

Architecture documentation for the normalizeCodeLocInfo() function in ReactMarkupServer-test.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  6b4437bd_8fdb_9028_0fcb_bba51a0a5455["normalizeCodeLocInfo()"]
  faf065f3_7f36_825d_181f_a4ec493b2b62["ReactMarkupServer-test.js"]
  6b4437bd_8fdb_9028_0fcb_bba51a0a5455 -->|defined in| faf065f3_7f36_825d_181f_a4ec493b2b62
  style 6b4437bd_8fdb_9028_0fcb_bba51a0a5455 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-markup/src/__tests__/ReactMarkupServer-test.js lines 18–25

function normalizeCodeLocInfo(str) {
  return (
    str &&
    String(str).replace(/\n +(?:at|in) ([\S]+)[^\n]*/g, function (m, name) {
      return '\n    in ' + name + ' (at **)';
    })
  );
}

Domain

Subdomains

Frequently Asked Questions

What does normalizeCodeLocInfo() do?
normalizeCodeLocInfo() is a function in the react codebase, defined in packages/react-markup/src/__tests__/ReactMarkupServer-test.js.
Where is normalizeCodeLocInfo() defined?
normalizeCodeLocInfo() is defined in packages/react-markup/src/__tests__/ReactMarkupServer-test.js at line 18.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free