rhombic
Version:
SQL parsing, lineage extraction and manipulation
18 lines • 633 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isParenthesesContext = exports.isAndOrContext = void 0;
/**
* Type guard for the case of booleanExpression with `And` or `Or` present.
*
* @param ctx BooleanExpressionContext
*/
const isAndOrContext = (ctx) => Boolean(ctx.And || ctx.Or);
exports.isAndOrContext = isAndOrContext;
/**
* Type guard to check if the expression has parentheses.
*
* @param ctx BooleanExpressionContext
*/
const isParenthesesContext = (ctx) => Boolean(ctx.LParen);
exports.isParenthesesContext = isParenthesesContext;
//# sourceMappingURL=booleanExpression.js.map