@abaplint/transpiler-cli 2.6.37 → 2.6.39
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 -2
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -75002,6 +75002,7 @@ exports.RaiseTranspiler = void 0;
|
|
|
75002
75002
|
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
75003
75003
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
75004
75004
|
const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
|
|
75005
|
+
const unique_identifier_1 = __webpack_require__(/*! ../unique_identifier */ "./node_modules/@abaplint/transpiler/build/src/unique_identifier.js");
|
|
75005
75006
|
class RaiseTranspiler {
|
|
75006
75007
|
transpile(node, traversal) {
|
|
75007
75008
|
var _a, _b;
|
|
@@ -75021,8 +75022,12 @@ class RaiseTranspiler {
|
|
|
75021
75022
|
if (parameters) {
|
|
75022
75023
|
p = traversal.traverse(parameters).getCode();
|
|
75023
75024
|
}
|
|
75024
|
-
const
|
|
75025
|
-
|
|
75025
|
+
const extra = `{"INTERNAL_FILENAME": "${traversal.getFilename()}","INTERNAL_LINE": ${node.getStart().getRow()}}`;
|
|
75026
|
+
const lookup = traversal.lookupClassOrInterface(classNameToken === null || classNameToken === void 0 ? void 0 : classNameToken.getStr(), classNameToken);
|
|
75027
|
+
const id = unique_identifier_1.UniqueIdentifier.get();
|
|
75028
|
+
return new chunk_1.Chunk().append(`const ${id} = await (new ${lookup}()).constructor_(${p});
|
|
75029
|
+
${id}.EXTRA_CX = ${extra};
|
|
75030
|
+
throw ${id};`, node, traversal);
|
|
75026
75031
|
}
|
|
75027
75032
|
}
|
|
75028
75033
|
exports.RaiseTranspiler = RaiseTranspiler;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.39",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"bin": {
|
|
6
6
|
"abap_transpile": "./abap_transpile"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"author": "abaplint",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@abaplint/transpiler": "^2.6.
|
|
28
|
+
"@abaplint/transpiler": "^2.6.39",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|