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/RangeNode.ts
-rw-r--r--
567
 1import { CellQuery } from "./CellQuery";
 2import { Node } from "./Node";
 3import { NodeType } from "./NodeType";
 4
 5/**
 6 * A range node represents a range of cells with a starting cell and ending cell, possibly by inferring that the start
 7 * or end cells are the max-cell or min-cell in the column or row.
 8 */
 9export class RangeNode extends Object implements Node {
10  readonly type: NodeType = NodeType.Range;
11  readonly query: CellQuery;
12
13  constructor(query: CellQuery) {
14    super();
15    this.query = query;
16  }
17
18  toString() {
19    return this.query.toString();
20  }
21}