@abaplint/transpiler-cli 2.11.19 → 2.11.21
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 +17 -1
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -81197,7 +81197,7 @@ class ValueBodyTranspiler {
|
|
|
81197
81197
|
ret.appendString(new value_body_line_1.ValueBodyLineTranspiler().transpile(rowType, child, traversal, extraFields).getCode());
|
|
81198
81198
|
}
|
|
81199
81199
|
else {
|
|
81200
|
-
throw new Error("ValueBodyTranspiler, unknown " + child.get().constructor.name);
|
|
81200
|
+
throw new Error("ValueBodyTranspiler, unknown " + child.get().constructor.name + " " + child.concatTokens());
|
|
81201
81201
|
}
|
|
81202
81202
|
}
|
|
81203
81203
|
return ret;
|
|
@@ -90618,12 +90618,28 @@ this.INTERNAL_ID = abap.internalIdCounter++;\n`;
|
|
|
90618
90618
|
if (dtel) {
|
|
90619
90619
|
return dtel.parseType(this.reg);
|
|
90620
90620
|
}
|
|
90621
|
+
const tabl = this.reg.getObject("TABL", name);
|
|
90622
|
+
if (tabl) {
|
|
90623
|
+
return tabl.parseType(this.reg);
|
|
90624
|
+
}
|
|
90625
|
+
const view = this.reg.getObject("VIEW", name);
|
|
90626
|
+
if (view) {
|
|
90627
|
+
return view.parseType(this.reg);
|
|
90628
|
+
}
|
|
90629
|
+
const ttyp = this.reg.getObject("TTYP", name);
|
|
90630
|
+
if (ttyp) {
|
|
90631
|
+
return ttyp.parseType(this.reg);
|
|
90632
|
+
}
|
|
90621
90633
|
if (name.includes("=>")) {
|
|
90622
90634
|
const [className, typeName] = name.split("=>");
|
|
90623
90635
|
const cls = this.findClassDefinition(className, scope);
|
|
90624
90636
|
if (cls) {
|
|
90625
90637
|
return cls.getTypeDefinitions().getByName(typeName)?.getType();
|
|
90626
90638
|
}
|
|
90639
|
+
const intf = this.findInterfaceDefinition(className, scope);
|
|
90640
|
+
if (intf) {
|
|
90641
|
+
return intf.getTypeDefinitions().getByName(typeName)?.getType();
|
|
90642
|
+
}
|
|
90627
90643
|
}
|
|
90628
90644
|
// todo: yea, well, yea
|
|
90629
90645
|
throw new Error("lookupType, type not found, " + node.concatTokens());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.21",
|
|
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.166",
|
|
31
|
-
"@abaplint/transpiler": "^2.11.
|
|
31
|
+
"@abaplint/transpiler": "^2.11.21",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^24.2.1",
|
|
34
34
|
"@types/progress": "^2.0.7",
|