@abaplint/transpiler-cli 2.14.22 → 2.14.23
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/bundle.js +7 -5
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -10351,7 +10351,7 @@ const sql_case_1 = __webpack_require__(/*! ./sql_case */ "./node_modules/@abapli
|
|
|
10351
10351
|
class SQLFunctionInput extends combi_1.Expression {
|
|
10352
10352
|
getRunnable() {
|
|
10353
10353
|
const hostParen = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), source_1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
10354
|
-
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)));
|
|
10354
|
+
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 });
|
|
10355
10355
|
const parenInput = (0, combi_1.seq)("(", SQLFunctionInput, ")");
|
|
10356
10356
|
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);
|
|
10357
10357
|
const operator = (0, combi_1.altPrio)("+", "-", "*", "/", "&&");
|
|
@@ -35741,12 +35741,13 @@ class MethodParameters {
|
|
|
35741
35741
|
}
|
|
35742
35742
|
parameterType = parameter.getType();
|
|
35743
35743
|
}
|
|
35744
|
+
// the parameter is supplied, even if its type is wrong
|
|
35745
|
+
(_a = this.requiredParameters) === null || _a === void 0 ? void 0 : _a.delete(item.name);
|
|
35744
35746
|
if (item.targetType && new _type_utils_1.TypeUtils(input.scope).isAssignableStrict(parameterType, item.targetType) === false) {
|
|
35745
35747
|
const message = "Method parameter type not compatible, " + item.name;
|
|
35746
35748
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
35747
35749
|
return;
|
|
35748
35750
|
}
|
|
35749
|
-
(_a = this.requiredParameters) === null || _a === void 0 ? void 0 : _a.delete(item.name);
|
|
35750
35751
|
}
|
|
35751
35752
|
}
|
|
35752
35753
|
checkExporting(node, input, method, errors = true) {
|
|
@@ -35769,7 +35770,9 @@ class MethodParameters {
|
|
|
35769
35770
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
35770
35771
|
continue;
|
|
35771
35772
|
}
|
|
35772
|
-
|
|
35773
|
+
// the parameter is supplied, even if its type is wrong
|
|
35774
|
+
this.requiredParameters.delete(item.name);
|
|
35775
|
+
if ((0, _check_text_symbol_1.checkTextSymbol)(item.source, parameter.getType(), input)) {
|
|
35773
35776
|
return;
|
|
35774
35777
|
}
|
|
35775
35778
|
else if (assignable(item.sourceType, parameter.getType(), item.source) === false) {
|
|
@@ -35777,7 +35780,6 @@ class MethodParameters {
|
|
|
35777
35780
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
35778
35781
|
return;
|
|
35779
35782
|
}
|
|
35780
|
-
this.requiredParameters.delete(item.name);
|
|
35781
35783
|
}
|
|
35782
35784
|
if (errors === true) {
|
|
35783
35785
|
this.reportErrors(node, input);
|
|
@@ -74261,7 +74263,7 @@ class Registry {
|
|
|
74261
74263
|
}
|
|
74262
74264
|
static abaplintVersion() {
|
|
74263
74265
|
// magic, see build script "version.js"
|
|
74264
|
-
return "2.120.
|
|
74266
|
+
return "2.120.98";
|
|
74265
74267
|
}
|
|
74266
74268
|
getDDICReferences() {
|
|
74267
74269
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.23",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"author": "abaplint",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@abaplint/core": "^2.120.
|
|
31
|
-
"@abaplint/transpiler": "^2.14.
|
|
30
|
+
"@abaplint/core": "^2.120.98",
|
|
31
|
+
"@abaplint/transpiler": "^2.14.23",
|
|
32
32
|
"@types/glob": "^9.0.0",
|
|
33
33
|
"@types/node": "^26.6.6",
|
|
34
34
|
"@types/progress": "^2.0.7",
|