Home / Function/ printDependencyComment() — react Function Reference

printDependencyComment() — react Function Reference

Architecture documentation for the printDependencyComment() function in CodegenReactiveFunction.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  aebeff4e_7cd5_bdc3_0d8d_cac388c83fb4["printDependencyComment()"]
  dc7f10c2_c914_a162_d02b_a10a15c64a5f["CodegenReactiveFunction.ts"]
  aebeff4e_7cd5_bdc3_0d8d_cac388c83fb4 -->|defined in| dc7f10c2_c914_a162_d02b_a10a15c64a5f
  94638464_4710_0693_528f_4848cf25e876["codegenReactiveScope()"]
  94638464_4710_0693_528f_4848cf25e876 -->|calls| aebeff4e_7cd5_bdc3_0d8d_cac388c83fb4
  9bb6f6d9_ff05_0f27_1a27_bc67145db7ba["convertIdentifier()"]
  aebeff4e_7cd5_bdc3_0d8d_cac388c83fb4 -->|calls| 9bb6f6d9_ff05_0f27_1a27_bc67145db7ba
  style aebeff4e_7cd5_bdc3_0d8d_cac388c83fb4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts lines 1434–1443

function printDependencyComment(dependency: ReactiveScopeDependency): string {
  const identifier = convertIdentifier(dependency.identifier);
  let name = identifier.name;
  if (dependency.path !== null) {
    for (const path of dependency.path) {
      name += `.${path.property}`;
    }
  }
  return name;
}

Domain

Subdomains

Frequently Asked Questions

What does printDependencyComment() do?
printDependencyComment() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts.
Where is printDependencyComment() defined?
printDependencyComment() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts at line 1434.
What does printDependencyComment() call?
printDependencyComment() calls 1 function(s): convertIdentifier.
What calls printDependencyComment()?
printDependencyComment() is called by 1 function(s): codegenReactiveScope.

Analyze Your Own Codebase

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

Try Supermodel Free