Home / Function/ printDeps() — react Function Reference

printDeps() — react Function Reference

Architecture documentation for the printDeps() function in DeriveMinimalDependenciesHIR.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  a0909a79_f73c_c240_9eb5_d14fc1117570["printDeps()"]
  ce8ab5d9_db4b_3be5_3f9c_38fa68bcbaa1["ReactiveScopeDependencyTreeHIR"]
  a0909a79_f73c_c240_9eb5_d14fc1117570 -->|defined in| ce8ab5d9_db4b_3be5_3f9c_38fa68bcbaa1
  5ec97278_f44e_5997_b5a4_8326b520fb66["printSubtree()"]
  a0909a79_f73c_c240_9eb5_d14fc1117570 -->|calls| 5ec97278_f44e_5997_b5a4_8326b520fb66
  e7a01d7c_c128_be66_a07d_007952a380da["printIdentifier()"]
  a0909a79_f73c_c240_9eb5_d14fc1117570 -->|calls| e7a01d7c_c128_be66_a07d_007952a380da
  073c81a5_c389_d108_5b8f_4d6dc6eece83["push()"]
  a0909a79_f73c_c240_9eb5_d14fc1117570 -->|calls| 073c81a5_c389_d108_5b8f_4d6dc6eece83
  style a0909a79_f73c_c240_9eb5_d14fc1117570 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/DeriveMinimalDependenciesHIR.ts lines 203–213

  printDeps(includeAccesses: boolean): string {
    let res: Array<Array<string>> = [];

    for (const [rootId, rootNode] of this.#deps.entries()) {
      const rootResults = printSubtree(rootNode, includeAccesses).map(
        result => `${printIdentifier(rootId)}.${result}`,
      );
      res.push(rootResults);
    }
    return res.flat().join('\n');
  }

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free