@abaplint/transpiler-cli 2.10.6 → 2.10.7
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 +25 -5
- package/package.json +4 -4
package/build/bundle.js
CHANGED
|
@@ -23949,6 +23949,10 @@ class FieldChain {
|
|
|
23949
23949
|
&& node.get() instanceof Expressions.SourceField) {
|
|
23950
23950
|
return new source_field_1.SourceField().runSyntax(node, input, type);
|
|
23951
23951
|
}
|
|
23952
|
+
else if (node instanceof nodes_1.ExpressionNode
|
|
23953
|
+
&& node.get() instanceof Expressions.Field) {
|
|
23954
|
+
return new source_field_1.SourceField().runSyntax(node, input, type);
|
|
23955
|
+
}
|
|
23952
23956
|
else if (node.get() instanceof Expressions.ClassName) {
|
|
23953
23957
|
const classTok = node.getFirstToken();
|
|
23954
23958
|
const classNam = classTok.getStr();
|
|
@@ -24981,6 +24985,8 @@ const source_1 = __webpack_require__(/*! ./source */ "./node_modules/@abaplint/c
|
|
|
24981
24985
|
const _type_utils_1 = __webpack_require__(/*! ../_type_utils */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_type_utils.js");
|
|
24982
24986
|
const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
|
|
24983
24987
|
const assert_error_1 = __webpack_require__(/*! ../assert_error */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/assert_error.js");
|
|
24988
|
+
const field_chain_1 = __webpack_require__(/*! ./field_chain */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/field_chain.js");
|
|
24989
|
+
const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
|
|
24984
24990
|
class MethodParameters {
|
|
24985
24991
|
constructor() {
|
|
24986
24992
|
this.requiredParameters = undefined;
|
|
@@ -25013,7 +25019,14 @@ class MethodParameters {
|
|
|
25013
25019
|
this.checkReceiving(children.shift(), input, method);
|
|
25014
25020
|
break;
|
|
25015
25021
|
case "EXCEPTIONS":
|
|
25016
|
-
|
|
25022
|
+
{
|
|
25023
|
+
// todo, old style exceptions
|
|
25024
|
+
const node = children.shift();
|
|
25025
|
+
const exceptions = node.findFirstExpression(Expressions.ParameterException);
|
|
25026
|
+
for (const s of (exceptions === null || exceptions === void 0 ? void 0 : exceptions.findAllExpressions(Expressions.SimpleFieldChain)) || []) {
|
|
25027
|
+
new field_chain_1.FieldChain().runSyntax(s, input, _reference_1.ReferenceType.DataReadReference);
|
|
25028
|
+
}
|
|
25029
|
+
}
|
|
25017
25030
|
break;
|
|
25018
25031
|
default:
|
|
25019
25032
|
throw new assert_error_1.AssertError("MethodParameters, unexpected token, " + name);
|
|
@@ -28003,6 +28016,10 @@ class CallFunction {
|
|
|
28003
28016
|
for (const s of node.findDirectExpressions(Expressions.SimpleSource2)) {
|
|
28004
28017
|
new source_1.Source().runSyntax(s, input);
|
|
28005
28018
|
}
|
|
28019
|
+
const exceptions = node.findFirstExpression(Expressions.ParameterException);
|
|
28020
|
+
for (const s of (exceptions === null || exceptions === void 0 ? void 0 : exceptions.findAllExpressions(Expressions.SimpleFieldChain)) || []) {
|
|
28021
|
+
new field_chain_1.FieldChain().runSyntax(s, input, _reference_1.ReferenceType.DataReadReference);
|
|
28022
|
+
}
|
|
28006
28023
|
}
|
|
28007
28024
|
}
|
|
28008
28025
|
exports.CallFunction = CallFunction;
|
|
@@ -51324,7 +51341,7 @@ class Registry {
|
|
|
51324
51341
|
}
|
|
51325
51342
|
static abaplintVersion() {
|
|
51326
51343
|
// magic, see build script "version.sh"
|
|
51327
|
-
return "2.112.
|
|
51344
|
+
return "2.112.10";
|
|
51328
51345
|
}
|
|
51329
51346
|
getDDICReferences() {
|
|
51330
51347
|
return this.ddicReferences;
|
|
@@ -80573,13 +80590,12 @@ class DeleteInternalTranspiler {
|
|
|
80573
80590
|
const extra = [];
|
|
80574
80591
|
const componentCond = node.findDirectExpression(abaplint.Expressions.ComponentCond);
|
|
80575
80592
|
if (componentCond) {
|
|
80576
|
-
|
|
80577
|
-
extra.push("where: " + traversal.traverse(componentCond).getCode().replace("await ", ""));
|
|
80593
|
+
extra.push("where: async " + traversal.traverse(componentCond).getCode());
|
|
80578
80594
|
}
|
|
80579
80595
|
const componentCompare = node.findDirectExpression(abaplint.Expressions.ComponentCompare);
|
|
80580
80596
|
if (componentCompare) {
|
|
80581
80597
|
// todo: this can be optimized, WITH TABLE KEY
|
|
80582
|
-
extra.push("where: " + traversal.traverse(componentCompare).getCode());
|
|
80598
|
+
extra.push("where: async " + traversal.traverse(componentCompare).getCode());
|
|
80583
80599
|
}
|
|
80584
80600
|
// todo, this is not completely correct, fields might have the name ADJACENT
|
|
80585
80601
|
// comparisons should be on table key unless other is specified, but we're unaware
|
|
@@ -83379,6 +83395,10 @@ class ReplaceTranspiler {
|
|
|
83379
83395
|
if (o && o.get() instanceof abaplint.Expressions.Source) {
|
|
83380
83396
|
extra.push("of: " + new expressions_1.SourceTranspiler().transpile(o, traversal).getCode());
|
|
83381
83397
|
}
|
|
83398
|
+
const cnt = node.findExpressionAfterToken("COUNT");
|
|
83399
|
+
if (cnt) {
|
|
83400
|
+
extra.push("replacementCount: " + new expressions_1.TargetTranspiler().transpile(cnt, traversal).getCode());
|
|
83401
|
+
}
|
|
83382
83402
|
const length = node.findExpressionAfterToken("LENGTH");
|
|
83383
83403
|
if (length) {
|
|
83384
83404
|
if (length.get() instanceof abaplint.Expressions.Source) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.7",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"author": "abaplint",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@abaplint/transpiler": "^2.10.
|
|
29
|
+
"@abaplint/transpiler": "^2.10.7",
|
|
30
30
|
"@types/glob": "^8.1.0",
|
|
31
31
|
"glob": "=7.2.0",
|
|
32
32
|
"@types/progress": "^2.0.7",
|
|
33
|
-
"@types/node": "^22.0
|
|
34
|
-
"@abaplint/core": "^2.112.
|
|
33
|
+
"@types/node": "^22.1.0",
|
|
34
|
+
"@abaplint/core": "^2.112.10",
|
|
35
35
|
"progress": "^2.0.3",
|
|
36
36
|
"webpack": "^5.93.0",
|
|
37
37
|
"webpack-cli": "^5.1.4",
|