@abaplint/transpiler 2.7.62 → 2.7.64

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.
@@ -3,5 +3,5 @@ import { IStatementTranspiler } from "./_statement_transpiler";
3
3
  import { Traversal } from "../traversal";
4
4
  import { Chunk } from "../chunk";
5
5
  export declare class CallTransactionTranspiler implements IStatementTranspiler {
6
- transpile(_node: abaplint.Nodes.StatementNode, _traversal: Traversal): Chunk;
6
+ transpile(node: abaplint.Nodes.StatementNode, traversal: Traversal): Chunk;
7
7
  }
@@ -3,8 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CallTransactionTranspiler = void 0;
4
4
  const chunk_1 = require("../chunk");
5
5
  class CallTransactionTranspiler {
6
- transpile(_node, _traversal) {
7
- return new chunk_1.Chunk(`throw new Error("CallTransaction, not supported, transpiler");`);
6
+ transpile(node, traversal) {
7
+ const ret = new chunk_1.Chunk();
8
+ ret.append("abap.statements.callTransaction();", node, traversal);
9
+ return ret;
8
10
  }
9
11
  }
10
12
  exports.CallTransactionTranspiler = CallTransactionTranspiler;
@@ -78,8 +78,12 @@ class TranspileTypes {
78
78
  else if (type instanceof abaplint.BasicTypes.StructureType) {
79
79
  resolved = "Structure";
80
80
  const list = [];
81
+ const renamingSuffix = [];
81
82
  for (const c of type.getComponents()) {
82
83
  list.push(`"` + c.name.toLowerCase() + `": ` + this.toType(c.type));
84
+ if (c.renamingSuffix) {
85
+ renamingSuffix.push(c.renamingSuffix);
86
+ }
83
87
  }
84
88
  extra = "{" + list.join(", ") + "}";
85
89
  if (type.getQualifiedName() !== undefined) {
@@ -91,6 +95,10 @@ class TranspileTypes {
91
95
  if (type.getDDICName() !== undefined) {
92
96
  extra += ", \"" + type.getQualifiedName() + "\"";
93
97
  }
98
+ else {
99
+ extra += ", undefined";
100
+ }
101
+ extra += ", " + JSON.stringify(renamingSuffix);
94
102
  }
95
103
  else if (type instanceof abaplint.BasicTypes.CLikeType
96
104
  || type instanceof abaplint.BasicTypes.CGenericType
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.7.62",
3
+ "version": "2.7.64",
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.102.14",
32
+ "@abaplint/core": "^2.102.15",
33
33
  "source-map": "^0.7.4"
34
34
  },
35
35
  "devDependencies": {