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

Function visitInstantiateExpr

packages/compiler/src/output/abstract_emitter.ts:376–383  ·  view source on GitHub ↗
(ast: o.InstantiateExpr, ctx: EmitterVisitorContext)

Source from the content-addressed store, hash-verified

374 }
375
376 visitInstantiateExpr(ast: o.InstantiateExpr, ctx: EmitterVisitorContext): void {
377 this.printLeadingComments(ast, ctx);
378 ctx.print(ast, `new `);
379 ast.classExpr.visitExpression(this, ctx);
380 ctx.print(ast, `(`);
381 this.visitAllExpressions(ast.args, ctx, ',');
382 ctx.print(ast, `)`);
383 }
384
385 visitLiteralExpr(ast: o.LiteralExpr, ctx: EmitterVisitorContext): void {
386 this.printLeadingComments(ast, ctx);

Callers

nothing calls this directly

Calls 4

printLeadingCommentsMethod · 0.80
visitAllExpressionsMethod · 0.80
printMethod · 0.45
visitExpressionMethod · 0.45

Tested by

no test coverage detected