MCPcopy Index your code
hub / github.com/angular/angular / getStatementsBlock

Function getStatementsBlock

packages/compiler/src/typecheck/ops/codegen.ts:131–137  ·  view source on GitHub ↗
(expressions: TcbExpr[], singleLine = false)

Source from the content-addressed store, hash-verified

129 * @param singleLine Whether to print them on a single line or across multiple. Defaults to multiple.
130 */
131export function getStatementsBlock(expressions: TcbExpr[], singleLine = false): string {
132 let result = '';
133 for (const expr of expressions) {
134 result += `${expr.print()};${singleLine ? ' ' : '\n'}`;
135 }
136 return result;
137}

Callers 6

renderBlockStatementsFunction · 0.90
generateBranchMethod · 0.90
executeMethod · 0.90
executeMethod · 0.90
tcbCreateEventHandlerFunction · 0.90
executeMethod · 0.90

Calls 1

printMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…