@abaplint/transpiler 2.11.88 → 2.11.90
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.
|
@@ -43,7 +43,7 @@ class CallTranspiler {
|
|
|
43
43
|
const methodCallBody = node.findDirectExpression(abaplint.Expressions.MethodCallBody);
|
|
44
44
|
if (methodCallBody) {
|
|
45
45
|
if (methodCallBody.findDirectTokenByText("EXCEPTION")) {
|
|
46
|
-
throw new Error("EXCEPTION-TABLE not supported, todo");
|
|
46
|
+
return new chunk_1.Chunk(`throw new Error("EXCEPTION-TABLE not supported, todo");`);
|
|
47
47
|
}
|
|
48
48
|
if (methodCallBody.findDirectTokenByText("PARAMETER")) {
|
|
49
49
|
const source = traversal.traverse(methodCallBody.findDirectExpression(abaplint.Expressions.Source)).getCode();
|
|
@@ -10,9 +10,6 @@ class RaiseTranspiler {
|
|
|
10
10
|
if (node.findDirectTokenByText("RESUMABLE")) {
|
|
11
11
|
throw new Error("RaiseTranspiler, RESUMABLE not implemented");
|
|
12
12
|
}
|
|
13
|
-
else if (node.findDirectTokenByText("SHORTDUMP")) {
|
|
14
|
-
throw new Error("RaiseTranspiler, SHORTDUMP not implemented");
|
|
15
|
-
}
|
|
16
13
|
const classNameToken = node.findFirstExpression(abaplint.Expressions.ClassName)?.getFirstToken();
|
|
17
14
|
const className = classNameToken?.getStr();
|
|
18
15
|
if (className === undefined) {
|
|
@@ -88,9 +85,13 @@ ${textid}.get().attr4.set('IF_T100_DYN_MSG~MSGV4');
|
|
|
88
85
|
count++;
|
|
89
86
|
}
|
|
90
87
|
}
|
|
88
|
+
let throwError = `throw ${id};`;
|
|
89
|
+
if (node.findDirectTokenByText("SHORTDUMP")) {
|
|
90
|
+
throwError = `throw new Error("short dump");`;
|
|
91
|
+
}
|
|
91
92
|
return new chunk_1.Chunk().append(pre + `const ${id} = await (new ${lookup}()).constructor_(${p});
|
|
92
93
|
${id}.EXTRA_CX = ${extra};${post}
|
|
93
|
-
|
|
94
|
+
${throwError}`, node, traversal);
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
97
|
exports.RaiseTranspiler = RaiseTranspiler;
|