@abaplint/transpiler 2.11.14 → 2.11.15

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
- const fs = new expressions_1.FieldSymbolTranspiler().transpile(node.findDirectExpression(abaplint.Expressions.FSTarget), traversal).getCode();
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 ")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.11.14",
3
+ "version": "2.11.15",
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.162",
32
+ "@abaplint/core": "^2.113.163",
33
33
  "source-map": "^0.7.6"
34
34
  },
35
35
  "devDependencies": {