* Creates a unary plus expression "+x", represented as `Binary` using "x - 0".
(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, expr: AST)
| 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 |