@gooddata/maql-antlr4ts 0.2.1-e1a1dea2.0 → 0.2.1-e222fa83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -2
- package/dist/index.js +11 -10
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2383,8 +2383,8 @@ declare class RelationNegatableContext extends ParserRuleContext {
|
|
|
2383
2383
|
}
|
|
2384
2384
|
declare class RelationBetweenContext extends RelationNegatableContext {
|
|
2385
2385
|
BETWEEN(): TerminalNode;
|
|
2386
|
-
|
|
2387
|
-
|
|
2386
|
+
prefixUnaryExpression(): PrefixUnaryExpressionContext[];
|
|
2387
|
+
prefixUnaryExpression(i: number): PrefixUnaryExpressionContext;
|
|
2388
2388
|
AND(): TerminalNode;
|
|
2389
2389
|
constructor(ctx: RelationNegatableContext);
|
|
2390
2390
|
enterRule(listener: MaqlParserListener): void;
|
package/dist/index.js
CHANGED
|
@@ -1372,11 +1372,11 @@ class MaqlParser extends Parser_1.Parser {
|
|
|
1372
1372
|
this.state = 255;
|
|
1373
1373
|
this.match(MaqlParser.BETWEEN);
|
|
1374
1374
|
this.state = 256;
|
|
1375
|
-
this.
|
|
1375
|
+
this.prefixUnaryExpression();
|
|
1376
1376
|
this.state = 257;
|
|
1377
1377
|
this.match(MaqlParser.AND);
|
|
1378
1378
|
this.state = 258;
|
|
1379
|
-
this.
|
|
1379
|
+
this.prefixUnaryExpression();
|
|
1380
1380
|
}
|
|
1381
1381
|
break;
|
|
1382
1382
|
case MaqlParser.IN:
|
|
@@ -4781,8 +4781,8 @@ MaqlParser._serializedATNSegment0 = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uE
|
|
|
4781
4781
|
"\x18\r\x02\xFB\xFD\x07\"\x02\x02\xFC\xFB\x03\x02\x02\x02\xFC\xFD\x03\x02" +
|
|
4782
4782
|
"\x02\x02\xFD\xFE\x03\x02\x02\x02\xFE\u0100\x05\x14\v\x02\xFF\xF9\x03\x02" +
|
|
4783
4783
|
"\x02\x02\xFF\xFC\x03\x02\x02\x02\u0100\x13\x03\x02\x02\x02\u0101\u0102" +
|
|
4784
|
-
"\x07\x06\x02\x02\u0102\u0103\x05
|
|
4785
|
-
"\u0104\u0105\x05
|
|
4784
|
+
"\x07\x06\x02\x02\u0102\u0103\x05 \x11\x02\u0103\u0104\x07\x04\x02\x02" +
|
|
4785
|
+
"\u0104\u0105\x05 \x11\x02\u0105\u0110\x03\x02\x02\x02\u0106\u0107\x07" +
|
|
4786
4786
|
"\x1C\x02\x02\u0107\u0109\x07b\x02\x02\u0108\u010A\x05\x9AN\x02\u0109\u0108" +
|
|
4787
4787
|
"\x03\x02\x02\x02\u0109\u010A\x03\x02\x02\x02\u010A\u010B\x03\x02\x02\x02" +
|
|
4788
4788
|
"\u010B\u0110\x07c\x02\x02\u010C\u010D\x05\x16\f\x02\u010D\u010E\x05\x98" +
|
|
@@ -5481,12 +5481,12 @@ class RelationNegatableContext extends ParserRuleContext_1.ParserRuleContext {
|
|
|
5481
5481
|
MaqlParser$1.RelationNegatableContext = RelationNegatableContext;
|
|
5482
5482
|
class RelationBetweenContext extends RelationNegatableContext {
|
|
5483
5483
|
BETWEEN() { return this.getToken(MaqlParser.BETWEEN, 0); }
|
|
5484
|
-
|
|
5484
|
+
prefixUnaryExpression(i) {
|
|
5485
5485
|
if (i === undefined) {
|
|
5486
|
-
return this.getRuleContexts(
|
|
5486
|
+
return this.getRuleContexts(PrefixUnaryExpressionContext);
|
|
5487
5487
|
}
|
|
5488
5488
|
else {
|
|
5489
|
-
return this.getRuleContext(i,
|
|
5489
|
+
return this.getRuleContext(i, PrefixUnaryExpressionContext);
|
|
5490
5490
|
}
|
|
5491
5491
|
}
|
|
5492
5492
|
AND() { return this.getToken(MaqlParser.AND, 0); }
|
|
@@ -8568,7 +8568,7 @@ MaqlParser$1.GranularityContext = GranularityContext;
|
|
|
8568
8568
|
var functions = {};
|
|
8569
8569
|
|
|
8570
8570
|
(function (exports) {
|
|
8571
|
-
// (C)
|
|
8571
|
+
// (C) 2025 GoodData Corporation
|
|
8572
8572
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8573
8573
|
exports.functionDefinitions = exports.isMaqlFunctionName = void 0;
|
|
8574
8574
|
function isMaqlFunctionName(name, astType) {
|
|
@@ -10577,7 +10577,8 @@ class MaqlAstVisitor extends tree_1.AbstractParseTreeVisitor {
|
|
|
10577
10577
|
if (relop === undefined) {
|
|
10578
10578
|
return this.ErrorNode(ctx);
|
|
10579
10579
|
}
|
|
10580
|
-
const
|
|
10580
|
+
const relopText = relop.text === "!=" ? "<>" : relop.text;
|
|
10581
|
+
const operator = checkType(relopText, OperatorNode_1$1.isOperator);
|
|
10581
10582
|
const additionCtx = ctx.tryGetRuleContext(0, Maql.AdditionContext);
|
|
10582
10583
|
const operand = additionCtx ? this.visit(additionCtx) : this.ErrorNode(ctx);
|
|
10583
10584
|
return new OperatorNode_1$1.OperatorNode(operator, [operand]);
|
|
@@ -10593,7 +10594,7 @@ class MaqlAstVisitor extends tree_1.AbstractParseTreeVisitor {
|
|
|
10593
10594
|
return new OperatorNode_1$1.OperatorNode(operator, relation.content);
|
|
10594
10595
|
}
|
|
10595
10596
|
visitRelationBetween(ctx) {
|
|
10596
|
-
const operands = ctx.
|
|
10597
|
+
const operands = ctx.prefixUnaryExpression().map((expr) => this.visit(expr));
|
|
10597
10598
|
return new OperatorNode_1$1.OperatorNode("between", operands);
|
|
10598
10599
|
}
|
|
10599
10600
|
visitRelationIn(ctx) {
|
package/package.json
CHANGED