time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

SqValuePath.d.ts (806B)


      1 import { ASTNode } from "../ast/parse.js";
      2 export type PathItem = {
      3     type: "string";
      4     value: string;
      5 } | {
      6     type: "number";
      7     value: number;
      8 } | {
      9     type: "cellAddress";
     10     value: {
     11         row: number;
     12         column: number;
     13     };
     14 } | {
     15     type: "calculator";
     16 };
     17 export declare class SqValuePath {
     18     root: "result" | "bindings";
     19     items: PathItem[];
     20     constructor(props: {
     21         root: "result" | "bindings";
     22         items: PathItem[];
     23     });
     24     extend(item: PathItem): SqValuePath;
     25     static findByOffset({ ast, offset, }: {
     26         ast: ASTNode;
     27         offset: number;
     28     }): SqValuePath | undefined;
     29     itemsAsValuePaths({ includeRoot }: {
     30         includeRoot?: boolean | undefined;
     31     }): SqValuePath[];
     32     isRoot(): boolean;
     33 }
     34 //# sourceMappingURL=SqValuePath.d.ts.map