@abaplint/transpiler-cli 2.11.53 → 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.
- package/build/bundle.js +7 -3
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -82269,6 +82269,7 @@ class HandleDataElement {
|
|
|
82269
82269
|
"type": ${transpile_types_1.TranspileTypes.toType(type)},
|
|
82270
82270
|
"domain": ${JSON.stringify(obj.getDomainName())},
|
|
82271
82271
|
"fixedValues": ${JSON.stringify(fixedValues)},
|
|
82272
|
+
"description": ${JSON.stringify(obj.getDescription())},
|
|
82272
82273
|
};`);
|
|
82273
82274
|
const output = {
|
|
82274
82275
|
object: {
|
|
@@ -82557,6 +82558,7 @@ class HandleTable {
|
|
|
82557
82558
|
"objectType": "TABL",
|
|
82558
82559
|
"type": ${transpile_types_1.TranspileTypes.toType(type)},
|
|
82559
82560
|
"keyFields": ${JSON.stringify(obj.listKeys(reg))},
|
|
82561
|
+
"description": ${JSON.stringify(obj.getDescription())},
|
|
82560
82562
|
};`);
|
|
82561
82563
|
const output = {
|
|
82562
82564
|
object: {
|
|
@@ -82598,6 +82600,7 @@ class HandleTableType {
|
|
|
82598
82600
|
const chunk = new chunk_1.Chunk().appendString(`abap.DDIC["${obj.getName().toUpperCase()}"] = {
|
|
82599
82601
|
"objectType": "TTYP",
|
|
82600
82602
|
"type": ${transpile_types_1.TranspileTypes.toType(type)},
|
|
82603
|
+
"description": ${JSON.stringify(obj.getDescription())},
|
|
82601
82604
|
};`);
|
|
82602
82605
|
const output = {
|
|
82603
82606
|
object: {
|
|
@@ -88428,8 +88431,6 @@ class SetHandlerTranspiler {
|
|
|
88428
88431
|
}
|
|
88429
88432
|
eventName = method.def.getEventName();
|
|
88430
88433
|
eventClass = this.findEventClass(method.def, traversal, scope);
|
|
88431
|
-
// className = method.def.getEventClass();
|
|
88432
|
-
// this.findEventClass(def, eventName, traversal, scope);
|
|
88433
88434
|
}
|
|
88434
88435
|
}
|
|
88435
88436
|
let f = undefined;
|
|
@@ -88447,6 +88448,7 @@ class SetHandlerTranspiler {
|
|
|
88447
88448
|
}
|
|
88448
88449
|
return new chunk_1.Chunk().append(`abap.statements.setHandler({EVENT_NAME: "${eventName}", EVENT_CLASS: "${eventClass}"}, [${methods.join(",")}], ${f}${activation});`, node, traversal);
|
|
88449
88450
|
}
|
|
88451
|
+
///////////////////////////////////////////////////////////////////////
|
|
88450
88452
|
findEventClass(mdef, traversal, scope) {
|
|
88451
88453
|
let def = traversal.findClassDefinition(mdef.getEventClass(), scope);
|
|
88452
88454
|
if (def === undefined) {
|
|
@@ -90131,10 +90133,12 @@ class InterfaceTranspiler {
|
|
|
90131
90133
|
for (const c of node.getChildren()) {
|
|
90132
90134
|
if (c instanceof abaplint.Nodes.StatementNode && c.get() instanceof abaplint.Statements.Interface) {
|
|
90133
90135
|
const scope = traversal.findCurrentScopeByToken(node.getFirstToken());
|
|
90134
|
-
|
|
90136
|
+
const token = c.findDirectExpression(abaplint.Expressions.InterfaceName).getFirstToken();
|
|
90137
|
+
name = token.getStr().toLowerCase();
|
|
90135
90138
|
name = traversal_1.Traversal.escapeNamespace(name);
|
|
90136
90139
|
ret += `class ${name} {\n`;
|
|
90137
90140
|
ret += `static INTERNAL_TYPE = 'INTF';\n`;
|
|
90141
|
+
ret += `static INTERNAL_NAME = '${traversal.buildInternalName(token.getStr(), def)}';\n`;
|
|
90138
90142
|
ret += `static ATTRIBUTES = {${Array.from(traversal.buildAttributes(def, scope)).join(",\n")}};\n`;
|
|
90139
90143
|
ret += `static METHODS = {${traversal.buildMethods(def, scope).join(",\n")}};\n`;
|
|
90140
90144
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.55",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@abaplint/core": "^2.113.186",
|
|
31
|
-
"@abaplint/transpiler": "^2.11.
|
|
31
|
+
"@abaplint/transpiler": "^2.11.55",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^24.3.0",
|
|
34
34
|
"@types/progress": "^2.0.7",
|