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

Method createPlus

packages/compiler/src/expression_parser/ast.ts:370–380  ·  view source on GitHub ↗

* Creates a unary plus expression "+x", represented as `Binary` using "x - 0".

(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, expr: AST)

Source from the content-addressed store, hash-verified

368 * Creates a unary plus expression "+x", represented as `Binary` using "x - 0".
369 */
370 static createPlus(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, expr: AST): Unary {
371 return new Unary(
372 span,
373 sourceSpan,
374 '+',
375 expr,
376 '-',
377 expr,
378 new LiteralPrimitive(span, sourceSpan, 0),
379 );
380 }
381
382 /**
383 * During the deprecation period this constructor is private, to avoid consumers from creating

Callers 1

parsePrefixMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected