printAliasingSignature() — react Function Reference
Architecture documentation for the printAliasingSignature() function in PrintHIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 6ae8909a_516f_2d5f_3f81_c2efe39bf321["printAliasingSignature()"] 6976a9ee_9d8e_4f16_3016_495f39aff2fd["PrintHIR.ts"] 6ae8909a_516f_2d5f_3f81_c2efe39bf321 -->|defined in| 6976a9ee_9d8e_4f16_3016_495f39aff2fd 3892e473_17c5_bb0e_5d49_0b377b5ed784["printAliasingEffect()"] 3892e473_17c5_bb0e_5d49_0b377b5ed784 -->|calls| 6ae8909a_516f_2d5f_3f81_c2efe39bf321 7cb90dd3_dbe0_0087_670d_277ddeadabfc["applyEffect()"] 7cb90dd3_dbe0_0087_670d_277ddeadabfc -->|calls| 6ae8909a_516f_2d5f_3f81_c2efe39bf321 073c81a5_c389_d108_5b8f_4d6dc6eece83["push()"] 6ae8909a_516f_2d5f_3f81_c2efe39bf321 -->|calls| 073c81a5_c389_d108_5b8f_4d6dc6eece83 3892e473_17c5_bb0e_5d49_0b377b5ed784["printAliasingEffect()"] 6ae8909a_516f_2d5f_3f81_c2efe39bf321 -->|calls| 3892e473_17c5_bb0e_5d49_0b377b5ed784 style 6ae8909a_516f_2d5f_3f81_c2efe39bf321 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts lines 1013–1036
export function printAliasingSignature(signature: AliasingSignature): string {
const tokens: Array<string> = ['function '];
if (signature.temporaries.length !== 0) {
tokens.push('<');
tokens.push(
signature.temporaries.map(temp => `$${temp.identifier.id}`).join(', '),
);
tokens.push('>');
}
tokens.push('(');
tokens.push('this=$' + String(signature.receiver));
for (const param of signature.params) {
tokens.push(', $' + String(param));
}
if (signature.rest != null) {
tokens.push(`, ...$${String(signature.rest)}`);
}
tokens.push('): ');
tokens.push('$' + String(signature.returns) + ':');
for (const effect of signature.effects) {
tokens.push('\n ' + printAliasingEffect(effect));
}
return tokens.join('');
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does printAliasingSignature() do?
printAliasingSignature() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts.
Where is printAliasingSignature() defined?
printAliasingSignature() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts at line 1013.
What does printAliasingSignature() call?
printAliasingSignature() calls 2 function(s): printAliasingEffect, push.
What calls printAliasingSignature()?
printAliasingSignature() is called by 2 function(s): applyEffect, printAliasingEffect.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free