@abaplint/transpiler-cli 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.
package/README.md CHANGED
@@ -2,10 +2,6 @@
2
2
 
3
3
  Transpiler CLI
4
4
 
5
- Input = `src` directory
6
-
7
- Output = `output` directory
8
-
9
5
  ## Examples
10
6
 
11
7
  Call `abap_transpile` on the command line, see example in
package/build/bundle.js CHANGED
@@ -53690,7 +53690,7 @@ class Registry {
53690
53690
  }
53691
53691
  static abaplintVersion() {
53692
53692
  // magic, see build script "version.sh"
53693
- return "2.113.162";
53693
+ return "2.113.163";
53694
53694
  }
53695
53695
  getDDICReferences() {
53696
53696
  return this.ddicReferences;
@@ -59833,6 +59833,9 @@ ${indentation}`);
59833
59833
  outlineCatchSimple(node, lowFile) {
59834
59834
  // outlines "CATCH cx_bcs INTO DATA(lx_bcs_excep).", note that this does not need to look at types
59835
59835
  var _a, _b;
59836
+ if (this.lowReg.getConfig().getVersion() === version_1.Version.OpenABAP) {
59837
+ return undefined;
59838
+ }
59836
59839
  if (!(node.get() instanceof Statements.Catch)) {
59837
59840
  return undefined;
59838
59841
  }
@@ -59879,6 +59882,9 @@ ${indentation}CATCH ${className} INTO ${targetName}.`;
59879
59882
  if (!(node.get() instanceof Statements.Move)) {
59880
59883
  return undefined;
59881
59884
  }
59885
+ if (this.lowReg.getConfig().getVersion() === version_1.Version.OpenABAP) {
59886
+ return undefined;
59887
+ }
59882
59888
  const target = node.findFirstExpression(Expressions.Target);
59883
59889
  if (!(((_a = target === null || target === void 0 ? void 0 : target.getFirstChild()) === null || _a === void 0 ? void 0 : _a.get()) instanceof Expressions.InlineData)) {
59884
59890
  return undefined;
@@ -82533,7 +82539,11 @@ class AssignTranspiler {
82533
82539
  transpile(node, traversal) {
82534
82540
  const assignSource = node.findDirectExpression(abaplint.Expressions.AssignSource);
82535
82541
  const sources = assignSource?.findDirectExpressionsMulti([abaplint.Expressions.Source, abaplint.Expressions.SimpleSource3]).map(e => new expressions_1.SourceTranspiler(false).transpile(e, traversal).getCode()) || [];
82536
- const fs = new expressions_1.FieldSymbolTranspiler().transpile(node.findDirectExpression(abaplint.Expressions.FSTarget), traversal).getCode();
82542
+ let fsTarget = node.findDirectExpression(abaplint.Expressions.FSTarget);
82543
+ if (fsTarget?.getFirstChild()?.get() instanceof abaplint.Expressions.InlineFS) {
82544
+ fsTarget = fsTarget.findFirstExpression(abaplint.Expressions.TargetFieldSymbol);
82545
+ }
82546
+ const fs = new expressions_1.FieldSymbolTranspiler().transpile(fsTarget, traversal).getCode();
82537
82547
  const options = [];
82538
82548
  const concat = node.concatTokens().toUpperCase();
82539
82549
  if (concat.startsWith("ASSIGN COMPONENT ")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.11.14",
3
+ "version": "2.11.15",
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.162",
31
- "@abaplint/transpiler": "^2.11.14",
30
+ "@abaplint/core": "^2.113.163",
31
+ "@abaplint/transpiler": "^2.11.15",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.2.1",
34
34
  "@types/progress": "^2.0.7",