@abaplint/transpiler-cli 2.10.12 → 2.10.14
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 +9 -5
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -79357,7 +79357,8 @@ const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abap
|
|
|
79357
79357
|
exports.DEFAULT_KEYWORDS = [
|
|
79358
79358
|
"abstract", "arguments", "await",
|
|
79359
79359
|
"break", "byte", "catch",
|
|
79360
|
-
"char",
|
|
79360
|
+
// "char",
|
|
79361
|
+
"class", "const", "continue",
|
|
79361
79362
|
"debugger", "default", "do",
|
|
79362
79363
|
"double", "else", "enum", "eval",
|
|
79363
79364
|
"export", "extends", "false", "final",
|
|
@@ -79370,10 +79371,10 @@ exports.DEFAULT_KEYWORDS = [
|
|
|
79370
79371
|
"switch", "synchronized", "this",
|
|
79371
79372
|
"throw", "throws", "transient", "true",
|
|
79372
79373
|
"try", "typeof", "var", "void",
|
|
79374
|
+
"delete",
|
|
79373
79375
|
"volatile", "while", "yield"
|
|
79374
79376
|
];
|
|
79375
79377
|
// "with"
|
|
79376
|
-
// "delete"
|
|
79377
79378
|
/** Replaces javascript keywords in ABAP source code, in-memory only */
|
|
79378
79379
|
class Keywords {
|
|
79379
79380
|
constructor(keywords) {
|
|
@@ -81650,6 +81651,7 @@ exports.EndLoopTranspiler = EndLoopTranspiler;
|
|
|
81650
81651
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
81651
81652
|
exports.EndMethodTranspiler = void 0;
|
|
81652
81653
|
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
81654
|
+
const traversal_1 = __webpack_require__(/*! ../traversal */ "./node_modules/@abaplint/transpiler/build/src/traversal.js");
|
|
81653
81655
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
81654
81656
|
class EndMethodTranspiler {
|
|
81655
81657
|
transpile(node, traversal) {
|
|
@@ -81664,7 +81666,7 @@ class EndMethodTranspiler {
|
|
|
81664
81666
|
for (const n in vars) {
|
|
81665
81667
|
const identifier = vars[n];
|
|
81666
81668
|
if (identifier.getMeta().includes("returning" /* abaplint.IdentifierMeta.MethodReturning */)) {
|
|
81667
|
-
returning += "return " + n.toLowerCase() + ";\n";
|
|
81669
|
+
returning += "return " + traversal_1.Traversal.prefixVariable(n.toLowerCase()) + ";\n";
|
|
81668
81670
|
}
|
|
81669
81671
|
}
|
|
81670
81672
|
const data = scope.getIdentifier();
|
|
@@ -84108,6 +84110,7 @@ exports.RetryTranspiler = RetryTranspiler;
|
|
|
84108
84110
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
84109
84111
|
exports.ReturnTranspiler = void 0;
|
|
84110
84112
|
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
84113
|
+
const traversal_1 = __webpack_require__(/*! ../traversal */ "./node_modules/@abaplint/transpiler/build/src/traversal.js");
|
|
84111
84114
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
84112
84115
|
const unique_identifier_1 = __webpack_require__(/*! ../unique_identifier */ "./node_modules/@abaplint/transpiler/build/src/unique_identifier.js");
|
|
84113
84116
|
class ReturnTranspiler {
|
|
@@ -84118,7 +84121,7 @@ class ReturnTranspiler {
|
|
|
84118
84121
|
for (const n in vars) {
|
|
84119
84122
|
const identifier = vars[n];
|
|
84120
84123
|
if (identifier.getMeta().includes("returning" /* abaplint.IdentifierMeta.MethodReturning */)) {
|
|
84121
|
-
extra = " " + n.toLowerCase();
|
|
84124
|
+
extra = " " + traversal_1.Traversal.prefixVariable(n.toLowerCase());
|
|
84122
84125
|
}
|
|
84123
84126
|
}
|
|
84124
84127
|
let pre = "";
|
|
@@ -86537,12 +86540,13 @@ exports.WhileTranspiler = WhileTranspiler;
|
|
|
86537
86540
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
86538
86541
|
exports.TranspileTypes = void 0;
|
|
86539
86542
|
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
86543
|
+
const traversal_1 = __webpack_require__(/*! ./traversal */ "./node_modules/@abaplint/transpiler/build/src/traversal.js");
|
|
86540
86544
|
const featureHexUInt8 = false;
|
|
86541
86545
|
// todo: change this class to static for performance?
|
|
86542
86546
|
class TranspileTypes {
|
|
86543
86547
|
declare(t) {
|
|
86544
86548
|
const type = t.getType();
|
|
86545
|
-
return "let " + t.getName().toLowerCase() + " = " + this.toType(type) + ";";
|
|
86549
|
+
return "let " + traversal_1.Traversal.prefixVariable(t.getName().toLowerCase()) + " = " + this.toType(type) + ";";
|
|
86546
86550
|
}
|
|
86547
86551
|
declareStaticSkipVoid(pre, t) {
|
|
86548
86552
|
const type = t.getType();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.14",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"author": "abaplint",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@abaplint/transpiler": "^2.10.
|
|
29
|
+
"@abaplint/transpiler": "^2.10.14",
|
|
30
30
|
"@types/glob": "^8.1.0",
|
|
31
31
|
"glob": "=7.2.0",
|
|
32
32
|
"@types/progress": "^2.0.7",
|