@abaplint/transpiler 2.11.54 → 2.11.55

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.
@@ -22,6 +22,7 @@ class HandleDataElement {
22
22
  "type": ${transpile_types_1.TranspileTypes.toType(type)},
23
23
  "domain": ${JSON.stringify(obj.getDomainName())},
24
24
  "fixedValues": ${JSON.stringify(fixedValues)},
25
+ "description": ${JSON.stringify(obj.getDescription())},
25
26
  };`);
26
27
  const output = {
27
28
  object: {
@@ -15,6 +15,7 @@ class HandleTable {
15
15
  "objectType": "TABL",
16
16
  "type": ${transpile_types_1.TranspileTypes.toType(type)},
17
17
  "keyFields": ${JSON.stringify(obj.listKeys(reg))},
18
+ "description": ${JSON.stringify(obj.getDescription())},
18
19
  };`);
19
20
  const output = {
20
21
  object: {
@@ -13,6 +13,7 @@ class HandleTableType {
13
13
  const chunk = new chunk_1.Chunk().appendString(`abap.DDIC["${obj.getName().toUpperCase()}"] = {
14
14
  "objectType": "TTYP",
15
15
  "type": ${transpile_types_1.TranspileTypes.toType(type)},
16
+ "description": ${JSON.stringify(obj.getDescription())},
16
17
  };`);
17
18
  const output = {
18
19
  object: {
@@ -14,10 +14,12 @@ class InterfaceTranspiler {
14
14
  for (const c of node.getChildren()) {
15
15
  if (c instanceof abaplint.Nodes.StatementNode && c.get() instanceof abaplint.Statements.Interface) {
16
16
  const scope = traversal.findCurrentScopeByToken(node.getFirstToken());
17
- name = c.findDirectExpression(abaplint.Expressions.InterfaceName)?.getFirstToken().getStr().toLowerCase();
17
+ const token = c.findDirectExpression(abaplint.Expressions.InterfaceName).getFirstToken();
18
+ name = token.getStr().toLowerCase();
18
19
  name = traversal_1.Traversal.escapeNamespace(name);
19
20
  ret += `class ${name} {\n`;
20
21
  ret += `static INTERNAL_TYPE = 'INTF';\n`;
22
+ ret += `static INTERNAL_NAME = '${traversal.buildInternalName(token.getStr(), def)}';\n`;
21
23
  ret += `static ATTRIBUTES = {${Array.from(traversal.buildAttributes(def, scope)).join(",\n")}};\n`;
22
24
  ret += `static METHODS = {${traversal.buildMethods(def, scope).join(",\n")}};\n`;
23
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.11.54",
3
+ "version": "2.11.55",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",