@abaplint/transpiler-cli 2.11.9 → 2.11.10
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 +60 -18
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -5463,7 +5463,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
|
|
|
5463
5463
|
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
5464
5464
|
class MessageSourceSource extends combi_1.Expression {
|
|
5465
5465
|
getRunnable() {
|
|
5466
|
-
return (0, combi_1.alt)((0, combi_1.ver)(version_1.Version.v740sp02, _1.Source), _1.SimpleSource3);
|
|
5466
|
+
return (0, combi_1.alt)((0, combi_1.ver)(version_1.Version.v740sp02, _1.Source, version_1.Version.OpenABAP), _1.SimpleSource3);
|
|
5467
5467
|
}
|
|
5468
5468
|
}
|
|
5469
5469
|
exports.MessageSourceSource = MessageSourceSource;
|
|
@@ -6793,7 +6793,7 @@ class Source extends combi_1.Expression {
|
|
|
6793
6793
|
const swit = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("SWITCH", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.SwitchBody, rparenNoSpace, (0, combi_1.optPrio)(after)));
|
|
6794
6794
|
const value = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("VALUE", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.ValueBody, rparenNoSpace, (0, combi_1.optPrio)(after)));
|
|
6795
6795
|
const cond = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("COND", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.CondBody, rparenNoSpace, (0, combi_1.optPrio)(after)));
|
|
6796
|
-
const reff = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("REF", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), Source, (0, combi_1.optPrio)("OPTIONAL"), rparen));
|
|
6796
|
+
const reff = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("REF", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), Source, (0, combi_1.optPrio)("OPTIONAL"), rparen), version_1.Version.OpenABAP);
|
|
6797
6797
|
const exact = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("EXACT", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), Source, rparen, (0, combi_1.optPrio)(after)));
|
|
6798
6798
|
const filter = (0, combi_1.ver)(version_1.Version.v740sp08, (0, combi_1.seq)("FILTER", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.FilterBody, rparen));
|
|
6799
6799
|
const reduce = (0, combi_1.ver)(version_1.Version.v740sp08, (0, combi_1.seq)("REDUCE", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.ReduceBody, rparen, (0, combi_1.optPrio)(after)));
|
|
@@ -14182,7 +14182,7 @@ class Move {
|
|
|
14182
14182
|
getMatcher() {
|
|
14183
14183
|
const mov = (0, combi_1.verNot)(version_1.Version.Cloud, "MOVE");
|
|
14184
14184
|
const move = (0, combi_1.seq)(mov, (0, combi_1.altPrio)((0, combi_1.seq)("EXACT", expressions_1.Source, "TO", expressions_1.Target), (0, combi_1.seq)(expressions_1.Source, (0, combi_1.altPrio)("?TO", "TO"), expressions_1.Target)), (0, combi_1.opt)((0, combi_1.seq)("PERCENTAGE", expressions_1.Source, (0, combi_1.opt)((0, combi_1.alt)("LEFT", "RIGHT")))));
|
|
14185
|
-
const calcAssign = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.alt)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.WPlus), "="), (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WDash), "="), "/=", "*=", "&&="));
|
|
14185
|
+
const calcAssign = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.alt)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.WPlus), "="), (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WDash), "="), "/=", "*=", "&&="), version_1.Version.OpenABAP);
|
|
14186
14186
|
const chained = (0, combi_1.seq)("=", (0, combi_1.star)((0, combi_1.seq)(expressions_1.Target, "=")));
|
|
14187
14187
|
const equals = (0, combi_1.altPrio)((0, combi_1.altPrio)(chained, "?="), calcAssign);
|
|
14188
14188
|
// todo, move "?=" to CAST?
|
|
@@ -53661,7 +53661,7 @@ class Registry {
|
|
|
53661
53661
|
}
|
|
53662
53662
|
static abaplintVersion() {
|
|
53663
53663
|
// magic, see build script "version.sh"
|
|
53664
|
-
return "2.113.
|
|
53664
|
+
return "2.113.155";
|
|
53665
53665
|
}
|
|
53666
53666
|
getDDICReferences() {
|
|
53667
53667
|
return this.ddicReferences;
|
|
@@ -85650,7 +85650,7 @@ class MessageTranspiler {
|
|
|
85650
85650
|
}
|
|
85651
85651
|
else {
|
|
85652
85652
|
// exception or constant based
|
|
85653
|
-
const exception = node.findDirectExpression(abaplint.Expressions.MessageSourceSource)?.findDirectExpression(abaplint.Expressions.
|
|
85653
|
+
const exception = node.findDirectExpression(abaplint.Expressions.MessageSourceSource)?.findDirectExpression(abaplint.Expressions.Source);
|
|
85654
85654
|
const str = exception?.findFirstExpression(abaplint.Expressions.Constant);
|
|
85655
85655
|
if (str) {
|
|
85656
85656
|
options.push("text: " + traversal.traverse(str).getCode());
|
|
@@ -86077,21 +86077,63 @@ class MoveTranspiler {
|
|
|
86077
86077
|
}
|
|
86078
86078
|
const ret = new chunk_1.Chunk();
|
|
86079
86079
|
const second = node.getChildren()[1]?.concatTokens();
|
|
86080
|
-
|
|
86081
|
-
|
|
86082
|
-
.
|
|
86083
|
-
|
|
86084
|
-
|
|
86085
|
-
.append(");", node.getLastToken(), traversal);
|
|
86086
|
-
}
|
|
86087
|
-
else {
|
|
86088
|
-
for (const target of targets.reverse()) {
|
|
86089
|
-
ret.appendChunk(target)
|
|
86090
|
-
.appendString(".set(")
|
|
86080
|
+
switch (second) {
|
|
86081
|
+
case "?=":
|
|
86082
|
+
ret.appendString("await abap.statements.cast(")
|
|
86083
|
+
.appendChunk(targets[0])
|
|
86084
|
+
.appendString(", ")
|
|
86091
86085
|
.appendChunk(source)
|
|
86092
86086
|
.append(");", node.getLastToken(), traversal);
|
|
86093
|
-
|
|
86094
|
-
|
|
86087
|
+
break;
|
|
86088
|
+
case "+":
|
|
86089
|
+
ret.appendChunk(targets[0])
|
|
86090
|
+
.appendString(".set(abap.operators.add(")
|
|
86091
|
+
.appendChunk(targets[0])
|
|
86092
|
+
.appendString(", ")
|
|
86093
|
+
.appendChunk(source)
|
|
86094
|
+
.append("));", node.getLastToken(), traversal);
|
|
86095
|
+
break;
|
|
86096
|
+
case "-":
|
|
86097
|
+
ret.appendChunk(targets[0])
|
|
86098
|
+
.appendString(".set(abap.operators.minus(")
|
|
86099
|
+
.appendChunk(targets[0])
|
|
86100
|
+
.appendString(", ")
|
|
86101
|
+
.appendChunk(source)
|
|
86102
|
+
.append("));", node.getLastToken(), traversal);
|
|
86103
|
+
break;
|
|
86104
|
+
case "/=":
|
|
86105
|
+
ret.appendChunk(targets[0])
|
|
86106
|
+
.appendString(".set(abap.operators.divide(")
|
|
86107
|
+
.appendChunk(targets[0])
|
|
86108
|
+
.appendString(", ")
|
|
86109
|
+
.appendChunk(source)
|
|
86110
|
+
.append("));", node.getLastToken(), traversal);
|
|
86111
|
+
break;
|
|
86112
|
+
case "*=":
|
|
86113
|
+
ret.appendChunk(targets[0])
|
|
86114
|
+
.appendString(".set(abap.operators.multiply(")
|
|
86115
|
+
.appendChunk(targets[0])
|
|
86116
|
+
.appendString(", ")
|
|
86117
|
+
.appendChunk(source)
|
|
86118
|
+
.append("));", node.getLastToken(), traversal);
|
|
86119
|
+
break;
|
|
86120
|
+
case "&&=":
|
|
86121
|
+
ret.appendChunk(targets[0])
|
|
86122
|
+
.appendString(".set(abap.operators.concat(")
|
|
86123
|
+
.appendChunk(targets[0])
|
|
86124
|
+
.appendString(", ")
|
|
86125
|
+
.appendChunk(source)
|
|
86126
|
+
.append("));", node.getLastToken(), traversal);
|
|
86127
|
+
break;
|
|
86128
|
+
default:
|
|
86129
|
+
for (const target of targets.reverse()) {
|
|
86130
|
+
ret.appendChunk(target)
|
|
86131
|
+
.appendString(".set(")
|
|
86132
|
+
.appendChunk(source)
|
|
86133
|
+
.append(");", node.getLastToken(), traversal);
|
|
86134
|
+
source = target;
|
|
86135
|
+
}
|
|
86136
|
+
break;
|
|
86095
86137
|
}
|
|
86096
86138
|
return ret;
|
|
86097
86139
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.10",
|
|
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.113.
|
|
31
|
-
"@abaplint/transpiler": "^2.11.
|
|
30
|
+
"@abaplint/core": "^2.113.155",
|
|
31
|
+
"@abaplint/transpiler": "^2.11.10",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^24.2.0",
|
|
34
34
|
"@types/progress": "^2.0.7",
|