Home / Function/ printDependency() — react Function Reference

printDependency() — react Function Reference

Architecture documentation for the printDependency() function in PrintReactiveFunction.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  a41e1147_6bb8_6588_8639_f338115ead9b["printDependency()"]
  d77f9ffb_2d12_7d1f_126f_8c05214f0059["PrintReactiveFunction.ts"]
  a41e1147_6bb8_6588_8639_f338115ead9b -->|defined in| d77f9ffb_2d12_7d1f_126f_8c05214f0059
  bb062ddc_03b9_8460_2af6_d98cc2189d33["collectHoistablePropertyLoadsImpl()"]
  bb062ddc_03b9_8460_2af6_d98cc2189d33 -->|calls| a41e1147_6bb8_6588_8639_f338115ead9b
  694a6a07_b3ca_4ab4_beba_18f4053a49f2["printReactiveScopeSummary()"]
  694a6a07_b3ca_4ab4_beba_18f4053a49f2 -->|calls| a41e1147_6bb8_6588_8639_f338115ead9b
  e7a01d7c_c128_be66_a07d_007952a380da["printIdentifier()"]
  a41e1147_6bb8_6588_8639_f338115ead9b -->|calls| e7a01d7c_c128_be66_a07d_007952a380da
  98665ce3_667d_9b3b_7526_24c349380b2e["printType()"]
  a41e1147_6bb8_6588_8639_f338115ead9b -->|calls| 98665ce3_667d_9b3b_7526_24c349380b2e
  style a41e1147_6bb8_6588_8639_f338115ead9b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PrintReactiveFunction.ts lines 113–118

export function printDependency(dependency: ReactiveScopeDependency): string {
  const identifier =
    printIdentifier(dependency.identifier) +
    printType(dependency.identifier.type);
  return `${identifier}${dependency.path.map(token => `${token.optional ? '?.' : '.'}${token.property}`).join('')}`;
}

Domain

Subdomains

Frequently Asked Questions

What does printDependency() do?
printDependency() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PrintReactiveFunction.ts.
Where is printDependency() defined?
printDependency() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PrintReactiveFunction.ts at line 113.
What does printDependency() call?
printDependency() calls 2 function(s): printIdentifier, printType.
What calls printDependency()?
printDependency() is called by 2 function(s): collectHoistablePropertyLoadsImpl, printReactiveScopeSummary.

Analyze Your Own Codebase

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

Try Supermodel Free