UNPKG

@qrvey/formula-lang

Version:

QFormula support for qrvey projects

15 lines 717 B
import { AST_TYPES, OPERATION_SCOPE } from '../constants'; export function isAggregateScope(context) { return (context === null || context === void 0 ? void 0 : context.currentInputScope) === OPERATION_SCOPE.AGGREGATE; } export function isRawScope(context) { return ((context === null || context === void 0 ? void 0 : context.currentInputScope) === undefined || (context === null || context === void 0 ? void 0 : context.currentInputScope) === OPERATION_SCOPE.RAW); } export function isAggregateFunction(node) { if (!node) return false; return (node.type === AST_TYPES.functionCall && node.functionScope === OPERATION_SCOPE.AGGREGATE); } //# sourceMappingURL=isAggregate.js.map