@abaplint/transpiler 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.
|
@@ -10,13 +10,12 @@ class DeleteInternalTranspiler {
|
|
|
10
10
|
const extra = [];
|
|
11
11
|
const componentCond = node.findDirectExpression(abaplint.Expressions.ComponentCond);
|
|
12
12
|
if (componentCond) {
|
|
13
|
-
|
|
14
|
-
extra.push("where: " + traversal.traverse(componentCond).getCode().replace("await ", ""));
|
|
13
|
+
extra.push("where: async " + traversal.traverse(componentCond).getCode());
|
|
15
14
|
}
|
|
16
15
|
const componentCompare = node.findDirectExpression(abaplint.Expressions.ComponentCompare);
|
|
17
16
|
if (componentCompare) {
|
|
18
17
|
// todo: this can be optimized, WITH TABLE KEY
|
|
19
|
-
extra.push("where: " + traversal.traverse(componentCompare).getCode());
|
|
18
|
+
extra.push("where: async " + traversal.traverse(componentCompare).getCode());
|
|
20
19
|
}
|
|
21
20
|
// todo, this is not completely correct, fields might have the name ADJACENT
|
|
22
21
|
// comparisons should be on table key unless other is specified, but we're unaware
|
|
@@ -19,6 +19,10 @@ class ReplaceTranspiler {
|
|
|
19
19
|
if (o && o.get() instanceof abaplint.Expressions.Source) {
|
|
20
20
|
extra.push("of: " + new expressions_1.SourceTranspiler().transpile(o, traversal).getCode());
|
|
21
21
|
}
|
|
22
|
+
const cnt = node.findExpressionAfterToken("COUNT");
|
|
23
|
+
if (cnt) {
|
|
24
|
+
extra.push("replacementCount: " + new expressions_1.TargetTranspiler().transpile(cnt, traversal).getCode());
|
|
25
|
+
}
|
|
22
26
|
const length = node.findExpressionAfterToken("LENGTH");
|
|
23
27
|
if (length) {
|
|
24
28
|
if (length.get() instanceof abaplint.Expressions.Source) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.7",
|
|
4
4
|
"description": "Transpiler",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"author": "abaplint",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@abaplint/core": "^2.112.
|
|
32
|
+
"@abaplint/core": "^2.112.10",
|
|
33
33
|
"source-map": "^0.7.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|