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

Function visitInvokeFunctionExpr

packages/compiler/src/output/abstract_emitter.ts:284–299  ·  view source on GitHub ↗
(expr: o.InvokeFunctionExpr, ctx: EmitterVisitorContext)

Source from the content-addressed store, hash-verified

282 }
283
284 visitInvokeFunctionExpr(expr: o.InvokeFunctionExpr, ctx: EmitterVisitorContext): void {
285 this.printLeadingComments(expr, ctx);
286
287 const shouldParenthesize = this.shouldParenthesize(expr.fn, expr);
288
289 if (shouldParenthesize) {
290 ctx.print(expr.fn, '(');
291 }
292 expr.fn.visitExpression(this, ctx);
293 if (shouldParenthesize) {
294 ctx.print(expr.fn, ')');
295 }
296 ctx.print(expr, expr.isOptional ? '?.(' : '(');
297 this.visitAllExpressions(expr.args, ctx, ',');
298 ctx.print(expr, ')');
299 }
300
301 visitTaggedTemplateLiteralExpr(
302 expr: o.TaggedTemplateLiteralExpr,

Callers

nothing calls this directly

Calls 3

visitAllExpressionsMethod · 0.80
printMethod · 0.45
visitExpressionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…