@abaplint/transpiler 2.13.93 → 2.13.94
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.
|
@@ -46,11 +46,14 @@ class DoTranspiler {
|
|
|
46
46
|
transpile(node, traversal) {
|
|
47
47
|
const found = node.findFirstExpression(abaplint.Expressions.Source);
|
|
48
48
|
if (found) {
|
|
49
|
-
|
|
49
|
+
// the count is converted to i, like any numeric expression position: an
|
|
50
|
+
// f count read with get( ) gives its text 3,0000000000000000E+00, which
|
|
51
|
+
// no loop counter compares with, and a p count of 2.4 means 2 passes
|
|
52
|
+
const source = new expressions_1.SourceTranspiler(false).transpile(found, traversal).getCode();
|
|
50
53
|
const idSource = unique_identifier_1.UniqueIdentifier.get();
|
|
51
54
|
const id = unique_identifier_1.UniqueIdentifier.get();
|
|
52
55
|
return new chunk_1.Chunk(`const ${this.syIndexBackup} = abap.builtin.sy.get().index.get();
|
|
53
|
-
const ${idSource} = ${source};
|
|
56
|
+
const ${idSource} = new abap.types.Integer().set(${source}).get();
|
|
54
57
|
for (let ${id} = 0; ${id} < ${idSource}; ${id}++) {
|
|
55
58
|
abap.builtin.sy.get().index.set(${id} + 1);`);
|
|
56
59
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.94",
|
|
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.120.
|
|
32
|
+
"@abaplint/core": "^2.120.61",
|
|
33
33
|
"source-map": "^0.8.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|