@abaplint/transpiler 2.11.14 → 2.11.16
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.
|
@@ -9,7 +9,11 @@ class AssignTranspiler {
|
|
|
9
9
|
transpile(node, traversal) {
|
|
10
10
|
const assignSource = node.findDirectExpression(abaplint.Expressions.AssignSource);
|
|
11
11
|
const sources = assignSource?.findDirectExpressionsMulti([abaplint.Expressions.Source, abaplint.Expressions.SimpleSource3]).map(e => new expressions_1.SourceTranspiler(false).transpile(e, traversal).getCode()) || [];
|
|
12
|
-
|
|
12
|
+
let fsTarget = node.findDirectExpression(abaplint.Expressions.FSTarget);
|
|
13
|
+
if (fsTarget?.getFirstChild()?.get() instanceof abaplint.Expressions.InlineFS) {
|
|
14
|
+
fsTarget = fsTarget.findFirstExpression(abaplint.Expressions.TargetFieldSymbol);
|
|
15
|
+
}
|
|
16
|
+
const fs = new expressions_1.FieldSymbolTranspiler().transpile(fsTarget, traversal).getCode();
|
|
13
17
|
const options = [];
|
|
14
18
|
const concat = node.concatTokens().toUpperCase();
|
|
15
19
|
if (concat.startsWith("ASSIGN COMPONENT ")) {
|
|
@@ -35,8 +35,11 @@ class ReadTableTranspiler {
|
|
|
35
35
|
}
|
|
36
36
|
const rt = node.findDirectExpression(abaplint.Expressions.ReadTableTarget);
|
|
37
37
|
const target = rt?.findDirectExpression(abaplint.Expressions.Target);
|
|
38
|
-
|
|
38
|
+
let fs = rt?.findDirectExpression(abaplint.Expressions.FSTarget);
|
|
39
39
|
if (rt && fs) {
|
|
40
|
+
if (fs?.getFirstChild()?.get() instanceof abaplint.Expressions.InlineFS) {
|
|
41
|
+
fs = fs.findFirstExpression(abaplint.Expressions.TargetFieldSymbol);
|
|
42
|
+
}
|
|
40
43
|
const name = new expressions_1.FieldSymbolTranspiler().transpile(fs, traversal).getCode();
|
|
41
44
|
extra.push("assigning: " + name);
|
|
42
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.16",
|
|
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.113.
|
|
32
|
+
"@abaplint/core": "^2.113.163",
|
|
33
33
|
"source-map": "^0.7.6"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|