UNPKG

rhombic

Version:

SQL parsing, lineage extraction and manipulation

30 lines 988 B
import { BooleanExpressionContext } from "../Context"; import { IToken } from "chevrotain"; declare type OrAndContext = BooleanExpressionContext & { booleanExpression: Array<{ name: "booleanExpression"; children: BooleanExpressionContext; }>; }; /** * Type guard for the case of booleanExpression with `And` or `Or` present. * * @param ctx BooleanExpressionContext */ export declare const isAndOrContext: (ctx: BooleanExpressionContext) => ctx is OrAndContext; declare type ParenthesesContext = BooleanExpressionContext & { LParen: IToken[]; booleanExpression: Array<{ name: "booleanExpression"; children: BooleanExpressionContext; }>; RParen: IToken[]; }; /** * Type guard to check if the expression has parentheses. * * @param ctx BooleanExpressionContext */ export declare const isParenthesesContext: (ctx: BooleanExpressionContext) => ctx is ParenthesesContext; export {}; //# sourceMappingURL=booleanExpression.d.ts.map