@abaplint/transpiler 2.11.20 → 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.
|
@@ -33,7 +33,7 @@ class ValueBodyTranspiler {
|
|
|
33
33
|
ret.appendString(new value_body_line_1.ValueBodyLineTranspiler().transpile(rowType, child, traversal, extraFields).getCode());
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
36
|
-
throw new Error("ValueBodyTranspiler, unknown " + child.get().constructor.name);
|
|
36
|
+
throw new Error("ValueBodyTranspiler, unknown " + child.get().constructor.name + " " + child.concatTokens());
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
return ret;
|
package/build/src/traversal.js
CHANGED
|
@@ -644,6 +644,10 @@ this.INTERNAL_ID = abap.internalIdCounter++;\n`;
|
|
|
644
644
|
if (view) {
|
|
645
645
|
return view.parseType(this.reg);
|
|
646
646
|
}
|
|
647
|
+
const ttyp = this.reg.getObject("TTYP", name);
|
|
648
|
+
if (ttyp) {
|
|
649
|
+
return ttyp.parseType(this.reg);
|
|
650
|
+
}
|
|
647
651
|
if (name.includes("=>")) {
|
|
648
652
|
const [className, typeName] = name.split("=>");
|
|
649
653
|
const cls = this.findClassDefinition(className, scope);
|