Home / Function/ printSourceLocation() — react Function Reference

printSourceLocation() — react Function Reference

Architecture documentation for the printSourceLocation() function in PrintHIR.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  f2599d2d_bbc8_cb5d_6bc8_f8d4601ee49e["printSourceLocation()"]
  6976a9ee_9d8e_4f16_3016_495f39aff2fd["PrintHIR.ts"]
  f2599d2d_bbc8_cb5d_6bc8_f8d4601ee49e -->|defined in| 6976a9ee_9d8e_4f16_3016_495f39aff2fd
  245c8b9a_b32e_79de_a175_090fb6c9757e["hashEffect()"]
  245c8b9a_b32e_79de_a175_090fb6c9757e -->|calls| f2599d2d_bbc8_cb5d_6bc8_f8d4601ee49e
  style f2599d2d_bbc8_cb5d_6bc8_f8d4601ee49e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts lines 892–898

export function printSourceLocation(loc: SourceLocation): string {
  if (typeof loc === 'symbol') {
    return 'generated';
  } else {
    return `${loc.start.line}:${loc.start.column}:${loc.end.line}:${loc.end.column}`;
  }
}

Subdomains

Called By

Frequently Asked Questions

What does printSourceLocation() do?
printSourceLocation() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts.
Where is printSourceLocation() defined?
printSourceLocation() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts at line 892.
What calls printSourceLocation()?
printSourceLocation() is called by 1 function(s): hashEffect.

Analyze Your Own Codebase

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

Try Supermodel Free