f7
f7 is a spreadsheet formula execution library
git clone https://git.vogt.world/f7.git
Log | Files | README.md | LICENSE.md
← All files
name: src/main/js/models/nodes/UnaryPlusOperationNode.ts
-rw-r--r--
397
 1import { Node } from "./Node";
 2import { NodeType } from "./NodeType";
 3
 4/**
 5 * Unary plus operation.
 6 */
 7export class UnaryPlusOperationNode extends Object implements Node {
 8  readonly type: NodeType = NodeType.UnaryPlusOperation;
 9  readonly operand: Node;
10
11  constructor(operand: Node) {
12    super();
13    this.operand = operand;
14  }
15
16  toString() {
17    return `+${this.operand.toString()}`;
18  }
19}