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/VariableNode.ts
-rw-r--r--
456
 1import { Node } from "./Node";
 2import { NodeType } from "./NodeType";
 3
 4/**
 5 * Variable node is a named variable, like TRUE, FALSE, or MY_SUPER_NAMED_RANGE. It is resolved to an actual object at
 6 * run-time.
 7 */
 8export class VariableNode extends Object implements Node {
 9  readonly type: NodeType = NodeType.Variable;
10  readonly name: string;
11
12  constructor(name: string) {
13    super();
14    this.name = name;
15  }
16
17  toString() {
18    return this.name;
19  }
20}