MCPcopy Create free account
hub / github.com/angular/angular / emitExpr

Function emitExpr

packages/compiler/test/output/abstract_emitter_spec.ts:23–27  ·  view source on GitHub ↗
(expr: o.Expression, printComments = true)

Source from the content-addressed store, hash-verified

21}
22
23function emitExpr(expr: o.Expression, printComments = true): string {
24 const ctx = EmitterVisitorContext.createRoot();
25 expr.visitExpression(new TestJsEmitter(printComments), ctx);
26 return ctx.toSource();
27}
28
29describe('AbstractEmitter', () => {
30 describe('escapeIdentifier', () => {

Callers 1

Calls 3

createRootMethod · 0.80
toSourceMethod · 0.80
visitExpressionMethod · 0.45

Tested by

no test coverage detected