synthesizeName() — react Function Reference
Architecture documentation for the synthesizeName() function in CodegenReactiveFunction.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD a599ee29_a03a_9f21_bb90_a7ef23973fc6["synthesizeName()"] 0fc11255_0435_9837_dff9_fb4e66f27eb6["Context"] a599ee29_a03a_9f21_bb90_a7ef23973fc6 -->|defined in| 0fc11255_0435_9837_dff9_fb4e66f27eb6 33e8ddc7_2075_1da1_7e05_66d1f4c34a3c["codegenFunction()"] 33e8ddc7_2075_1da1_7e05_66d1f4c34a3c -->|calls| a599ee29_a03a_9f21_bb90_a7ef23973fc6 94638464_4710_0693_528f_4848cf25e876["codegenReactiveScope()"] 94638464_4710_0693_528f_4848cf25e876 -->|calls| a599ee29_a03a_9f21_bb90_a7ef23973fc6 dcb26d23_8970_206b_e5d8_91b588c501b5["makeIdentifierName()"] a599ee29_a03a_9f21_bb90_a7ef23973fc6 -->|calls| dcb26d23_8970_206b_e5d8_91b588c501b5 style a599ee29_a03a_9f21_bb90_a7ef23973fc6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts lines 475–488
synthesizeName(name: string): ValidIdentifierName {
const previous = this.synthesizedNames.get(name);
if (previous !== undefined) {
return previous;
}
let validated = makeIdentifierName(name).value;
let index = 0;
while (this.uniqueIdentifiers.has(validated)) {
validated = makeIdentifierName(`${name}${index++}`).value;
}
this.uniqueIdentifiers.add(validated);
this.synthesizedNames.set(name, validated);
return validated;
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does synthesizeName() do?
synthesizeName() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts.
Where is synthesizeName() defined?
synthesizeName() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts at line 475.
What does synthesizeName() call?
synthesizeName() calls 1 function(s): makeIdentifierName.
What calls synthesizeName()?
synthesizeName() is called by 2 function(s): codegenFunction, codegenReactiveScope.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free