Home / Function/ printAliases() — react Function Reference

printAliases() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  382ec0a6_259a_0930_660b_107b02378e40["printAliases()"]
  6976a9ee_9d8e_4f16_3016_495f39aff2fd["PrintHIR.ts"]
  382ec0a6_259a_0930_660b_107b02378e40 -->|defined in| 6976a9ee_9d8e_4f16_3016_495f39aff2fd
  631ac101_c6b9_8c55_7557_0bce62532665["buildSets()"]
  382ec0a6_259a_0930_660b_107b02378e40 -->|calls| 631ac101_c6b9_8c55_7557_0bce62532665
  073c81a5_c389_d108_5b8f_4d6dc6eece83["push()"]
  382ec0a6_259a_0930_660b_107b02378e40 -->|calls| 073c81a5_c389_d108_5b8f_4d6dc6eece83
  e7a01d7c_c128_be66_a07d_007952a380da["printIdentifier()"]
  382ec0a6_259a_0930_660b_107b02378e40 -->|calls| e7a01d7c_c128_be66_a07d_007952a380da
  style 382ec0a6_259a_0930_660b_107b02378e40 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts lines 908–917

export function printAliases(aliases: DisjointSet<Identifier>): string {
  const aliasSets = aliases.buildSets();

  const items = [];
  for (const aliasSet of aliasSets) {
    items.push([...aliasSet].map(id => printIdentifier(id)).join(','));
  }

  return items.join('\n');
}

Subdomains

Frequently Asked Questions

What does printAliases() do?
printAliases() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts.
Where is printAliases() defined?
printAliases() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts at line 908.
What does printAliases() call?
printAliases() calls 3 function(s): buildSets, printIdentifier, push.

Analyze Your Own Codebase

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

Try Supermodel Free