Home / Function/ printIdentifier() — react Function Reference

printIdentifier() — react Function Reference

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

Function typescript MIRInfrastructure HIR calls 2 called by 17

Entity Profile

Dependency Diagram

graph TD
  e7a01d7c_c128_be66_a07d_007952a380da["printIdentifier()"]
  6976a9ee_9d8e_4f16_3016_495f39aff2fd["PrintHIR.ts"]
  e7a01d7c_c128_be66_a07d_007952a380da -->|defined in| 6976a9ee_9d8e_4f16_3016_495f39aff2fd
  7768e811_2923_bb27_1697_f9458cbb2d02["matchOptionalTestBlock()"]
  7768e811_2923_bb27_1697_f9458cbb2d02 -->|calls| e7a01d7c_c128_be66_a07d_007952a380da
  66e2b974_b614_49df_112b_4ddbd5350177["identifier()"]
  66e2b974_b614_49df_112b_4ddbd5350177 -->|calls| e7a01d7c_c128_be66_a07d_007952a380da
  a0909a79_f73c_c240_9eb5_d14fc1117570["printDeps()"]
  a0909a79_f73c_c240_9eb5_d14fc1117570 -->|calls| e7a01d7c_c128_be66_a07d_007952a380da
  be6dc962_71f6_4266_c409_6238243a005b["debug()"]
  be6dc962_71f6_4266_c409_6238243a005b -->|calls| e7a01d7c_c128_be66_a07d_007952a380da
  bf7f1cf7_fc0e_6bac_827c_8d36d98126da["printPlace()"]
  bf7f1cf7_fc0e_6bac_827c_8d36d98126da -->|calls| e7a01d7c_c128_be66_a07d_007952a380da
  7791fd4d_5296_2b3e_4771_a3069a4070ed["printManualMemoDependency()"]
  7791fd4d_5296_2b3e_4771_a3069a4070ed -->|calls| e7a01d7c_c128_be66_a07d_007952a380da
  382ec0a6_259a_0930_660b_107b02378e40["printAliases()"]
  382ec0a6_259a_0930_660b_107b02378e40 -->|calls| e7a01d7c_c128_be66_a07d_007952a380da
  767c7f7a_dd53_8c11_bc50_8150db33d98a["printPlaceForAliasEffect()"]
  767c7f7a_dd53_8c11_bc50_8150db33d98a -->|calls| e7a01d7c_c128_be66_a07d_007952a380da
  953c4d58_4239_ada6_0ba7_cf09db9625fe["assign()"]
  953c4d58_4239_ada6_0ba7_cf09db9625fe -->|calls| e7a01d7c_c128_be66_a07d_007952a380da
  6184f2b6_7ea4_aff3_4588_a9af7d7fdf3c["appendAlias()"]
  6184f2b6_7ea4_aff3_4588_a9af7d7fdf3c -->|calls| e7a01d7c_c128_be66_a07d_007952a380da
  66224640_ba7d_ee8a_5de1_ad0d81748cff["emitUpdatedJsx()"]
  66224640_ba7d_ee8a_5de1_ad0d81748cff -->|calls| e7a01d7c_c128_be66_a07d_007952a380da
  94638464_4710_0693_528f_4848cf25e876["codegenReactiveScope()"]
  94638464_4710_0693_528f_4848cf25e876 -->|calls| e7a01d7c_c128_be66_a07d_007952a380da
  694a6a07_b3ca_4ab4_beba_18f4053a49f2["printReactiveScopeSummary()"]
  694a6a07_b3ca_4ab4_beba_18f4053a49f2 -->|calls| e7a01d7c_c128_be66_a07d_007952a380da
  style e7a01d7c_c128_be66_a07d_007952a380da fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts lines 846–848

export function printIdentifier(id: Identifier): string {
  return `${printName(id.name)}\$${id.id}${printScope(id.scope)}`;
}

Subdomains

Frequently Asked Questions

What does printIdentifier() do?
printIdentifier() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts.
Where is printIdentifier() defined?
printIdentifier() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts at line 846.
What does printIdentifier() call?
printIdentifier() calls 2 function(s): printName, printScope.
What calls printIdentifier()?
printIdentifier() is called by 17 function(s): appendAlias, assign, codegenReactiveScope, debug, definePlace, emitUpdatedJsx, identifier, matchOptionalTestBlock, and 9 more.

Analyze Your Own Codebase

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

Try Supermodel Free