@abaplint/cli 2.120.96 → 2.120.98
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/build/cli.js +10 -8
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -8484,15 +8484,15 @@ class SQLField extends combi_1.Expression {
|
|
|
8484
8484
|
const parenField = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), field, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
8485
8485
|
const parenFieldNoAgg = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), fieldNoAgg, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
8486
8486
|
const subNoAgg = (0, combi_1.plusPrio)((0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/", "&&"), (0, combi_1.altPrio)(parenFieldNoAgg, fieldNoAgg)));
|
|
8487
|
-
const arithNoAgg = (0, combi_1.ver)(version_1.Release.v740sp05, subNoAgg);
|
|
8487
|
+
const arithNoAgg = (0, combi_1.ver)(version_1.Release.v740sp05, subNoAgg, { also: combi_1.AlsoIn.OpenABAP });
|
|
8488
8488
|
const subWithAgg = (0, combi_1.plusPrio)((0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/", "&&"), (0, combi_1.altPrio)(parenField, field)));
|
|
8489
|
-
const arithWithAgg = (0, combi_1.ver)(version_1.Release.v754, subWithAgg);
|
|
8489
|
+
const arithWithAgg = (0, combi_1.ver)(version_1.Release.v754, subWithAgg, { also: combi_1.AlsoIn.OpenABAP });
|
|
8490
8490
|
const arith = (0, combi_1.altPrio)(arithWithAgg, arithNoAgg);
|
|
8491
8491
|
const arithSequence = (0, combi_1.seq)((0, combi_1.optPrio)("-"), field, (0, combi_1.optPrio)(arith));
|
|
8492
8492
|
const parenArithSequence = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), (0, combi_1.optPrio)("-"), arithSequence, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
8493
8493
|
const subExtWithAgg = (0, combi_1.plusPrio)((0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/", "&&"), (0, combi_1.altPrio)(parenArithSequence, parenField, field)));
|
|
8494
8494
|
const subExtNoAgg = (0, combi_1.plusPrio)((0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/", "&&"), (0, combi_1.altPrio)(parenArithSequence, parenFieldNoAgg, fieldNoAgg)));
|
|
8495
|
-
const arithExt = (0, combi_1.altPrio)((0, combi_1.ver)(version_1.Release.v754, subExtWithAgg), (0, combi_1.ver)(version_1.Release.v740sp05, subExtNoAgg));
|
|
8495
|
+
const arithExt = (0, combi_1.altPrio)((0, combi_1.ver)(version_1.Release.v754, subExtWithAgg, { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.ver)(version_1.Release.v740sp05, subExtNoAgg, { also: combi_1.AlsoIn.OpenABAP }));
|
|
8496
8496
|
return (0, combi_1.seq)((0, combi_1.altPrio)((0, combi_1.seq)(parenArithSequence, (0, combi_1.optPrio)(arithExt)), arithSequence), (0, combi_1.optPrio)(as));
|
|
8497
8497
|
}
|
|
8498
8498
|
}
|
|
@@ -9205,7 +9205,7 @@ const sql_case_1 = __webpack_require__(/*! ./sql_case */ "../core/build/src/abap
|
|
|
9205
9205
|
class SQLFunctionInput extends combi_1.Expression {
|
|
9206
9206
|
getRunnable() {
|
|
9207
9207
|
const hostParen = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), source_1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
9208
|
-
const at = (0, combi_1.ver)(version_1.Release.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(simple_source3_1.SimpleSource3, hostParen)));
|
|
9208
|
+
const at = (0, combi_1.ver)(version_1.Release.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(simple_source3_1.SimpleSource3, hostParen)), { also: combi_1.AlsoIn.OpenABAP });
|
|
9209
9209
|
const parenInput = (0, combi_1.seq)("(", SQLFunctionInput, ")");
|
|
9210
9210
|
const param = (0, combi_1.altPrio)(parenInput, sql_case_1.SQLCase, sql_function_1.SQLFunction, sql_aggregation_1.SQLAggregation, sql_field_name_1.SQLFieldName, sql_alias_field_1.SQLAliasField, constant_1.Constant, at);
|
|
9211
9211
|
const operator = (0, combi_1.altPrio)("+", "-", "*", "/", "&&");
|
|
@@ -34595,12 +34595,13 @@ class MethodParameters {
|
|
|
34595
34595
|
}
|
|
34596
34596
|
parameterType = parameter.getType();
|
|
34597
34597
|
}
|
|
34598
|
+
// the parameter is supplied, even if its type is wrong
|
|
34599
|
+
(_a = this.requiredParameters) === null || _a === void 0 ? void 0 : _a.delete(item.name);
|
|
34598
34600
|
if (item.targetType && new _type_utils_1.TypeUtils(input.scope).isAssignableStrict(parameterType, item.targetType) === false) {
|
|
34599
34601
|
const message = "Method parameter type not compatible, " + item.name;
|
|
34600
34602
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
34601
34603
|
return;
|
|
34602
34604
|
}
|
|
34603
|
-
(_a = this.requiredParameters) === null || _a === void 0 ? void 0 : _a.delete(item.name);
|
|
34604
34605
|
}
|
|
34605
34606
|
}
|
|
34606
34607
|
checkExporting(node, input, method, errors = true) {
|
|
@@ -34623,7 +34624,9 @@ class MethodParameters {
|
|
|
34623
34624
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
34624
34625
|
continue;
|
|
34625
34626
|
}
|
|
34626
|
-
|
|
34627
|
+
// the parameter is supplied, even if its type is wrong
|
|
34628
|
+
this.requiredParameters.delete(item.name);
|
|
34629
|
+
if ((0, _check_text_symbol_1.checkTextSymbol)(item.source, parameter.getType(), input)) {
|
|
34627
34630
|
return;
|
|
34628
34631
|
}
|
|
34629
34632
|
else if (assignable(item.sourceType, parameter.getType(), item.source) === false) {
|
|
@@ -34631,7 +34634,6 @@ class MethodParameters {
|
|
|
34631
34634
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
34632
34635
|
return;
|
|
34633
34636
|
}
|
|
34634
|
-
this.requiredParameters.delete(item.name);
|
|
34635
34637
|
}
|
|
34636
34638
|
if (errors === true) {
|
|
34637
34639
|
this.reportErrors(node, input);
|
|
@@ -73115,7 +73117,7 @@ class Registry {
|
|
|
73115
73117
|
}
|
|
73116
73118
|
static abaplintVersion() {
|
|
73117
73119
|
// magic, see build script "version.js"
|
|
73118
|
-
return "2.120.
|
|
73120
|
+
return "2.120.98";
|
|
73119
73121
|
}
|
|
73120
73122
|
getDDICReferences() {
|
|
73121
73123
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.120.
|
|
3
|
+
"version": "2.120.98",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://abaplint.org",
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@abaplint/core": "^2.120.
|
|
42
|
+
"@abaplint/core": "^2.120.98",
|
|
43
43
|
"@types/chai": "^4.3.20",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|
|
45
45
|
"@types/mocha": "^10.0.10",
|