printDelimitedCommentList() — react Function Reference
Architecture documentation for the printDelimitedCommentList() function in CodegenReactiveFunction.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 4076d962_b119_4222_3695_a151e2cd831e["printDelimitedCommentList()"] dc7f10c2_c914_a162_d02b_a10a15c64a5f["CodegenReactiveFunction.ts"] 4076d962_b119_4222_3695_a151e2cd831e -->|defined in| dc7f10c2_c914_a162_d02b_a10a15c64a5f 94638464_4710_0693_528f_4848cf25e876["codegenReactiveScope()"] 94638464_4710_0693_528f_4848cf25e876 -->|calls| 4076d962_b119_4222_3695_a151e2cd831e 073c81a5_c389_d108_5b8f_4d6dc6eece83["push()"] 4076d962_b119_4222_3695_a151e2cd831e -->|calls| 073c81a5_c389_d108_5b8f_4d6dc6eece83 style 4076d962_b119_4222_3695_a151e2cd831e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts lines 1445–1467
function printDelimitedCommentList(
items: Array<string>,
finalCompletion: string,
): string {
if (items.length === 2) {
return items.join(` ${finalCompletion} `);
} else if (items.length <= 1) {
return items.join('');
}
let output = [];
for (let i = 0; i < items.length; i++) {
const item = items[i]!;
if (i < items.length - 2) {
output.push(`${item}, `);
} else if (i === items.length - 2) {
output.push(`${item}, ${finalCompletion} `);
} else {
output.push(item);
}
}
return output.join('');
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does printDelimitedCommentList() do?
printDelimitedCommentList() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts.
Where is printDelimitedCommentList() defined?
printDelimitedCommentList() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts at line 1445.
What does printDelimitedCommentList() call?
printDelimitedCommentList() calls 1 function(s): push.
What calls printDelimitedCommentList()?
printDelimitedCommentList() 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