@abaplint/transpiler-cli 2.0.38 → 2.0.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 +1 -1
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -14657,7 +14657,7 @@ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\n
|
|
|
14657
14657
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
14658
14658
|
|
|
14659
14659
|
"use strict";
|
|
14660
|
-
eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.WriteTranspiler = void 0;\r\nconst abaplint = __webpack_require__(/*! @abaplint/core */ \"./node_modules/@abaplint/core/build/src/index.js\");\r\nconst chunk_1 = __webpack_require__(/*! ../chunk */ \"./node_modules/@abaplint/transpiler/build/src/chunk.js\");\r\nclass WriteTranspiler {\r\n transpile(node, traversal) {\r\n var _a;\r\n const extra = [];\r\n let source;\r\n const newLine = ((_a = node.findFirstExpression(abaplint.Expressions.WriteOffsetLength)) === null || _a === void 0 ? void 0 : _a.findDirectTokenByText(\"/\")) !== undefined;\r\n const target = node.findDirectExpression(abaplint.Expressions.Target);\r\n if (target) {\r\n extra.push(\"target: \" + traversal.traverse(target).getCode());\r\n }\r\n const expr = node.findDirectExpression(abaplint.Expressions.Source);\r\n if (expr === undefined) {\r\n source = new chunk_1.Chunk().append(\"''\", node, traversal);\r\n extra.push(\"newLine: true\");\r\n extra.push(\"skipLine: true\");\r\n }\r\n else {\r\n if (newLine === true) {\r\n extra.push(\"newLine: true\");\r\n }\r\n const concat = expr.concatTokens();\r\n if (concat.startsWith(\"'@KERNEL \")) {\r\n // @KERNEL commands must be taken verbatim\r\n return new chunk_1.Chunk().append(concat.substr(9, concat.length - 10), node, traversal);\r\n }\r\n source = traversal.traverse(expr);\r\n }\r\n const chunk = new chunk_1.Chunk();\r\n chunk.append(\"abap.statements.write(\", node, traversal);\r\n chunk.appendChunk(source);\r\n if (extra.length === 0) {\r\n chunk.append(\");\", node.getLastToken(), traversal);\r\n }\r\n else {\r\n chunk.append(\",{\" + extra.join(\",\") + \"});\", node.getLastToken(), traversal);\r\n }\r\n return chunk;\r\n }\r\n}\r\nexports.WriteTranspiler = WriteTranspiler;\r\n//# sourceMappingURL=write.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/write.js?");
|
|
14660
|
+
eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.WriteTranspiler = void 0;\r\nconst abaplint = __webpack_require__(/*! @abaplint/core */ \"./node_modules/@abaplint/core/build/src/index.js\");\r\nconst chunk_1 = __webpack_require__(/*! ../chunk */ \"./node_modules/@abaplint/transpiler/build/src/chunk.js\");\r\nclass WriteTranspiler {\r\n transpile(node, traversal) {\r\n var _a;\r\n const extra = [];\r\n let source;\r\n const newLine = ((_a = node.findFirstExpression(abaplint.Expressions.WriteOffsetLength)) === null || _a === void 0 ? void 0 : _a.findDirectTokenByText(\"/\")) !== undefined;\r\n const concat = node.concatTokens().toUpperCase();\r\n const target = node.findDirectExpression(abaplint.Expressions.Target);\r\n if (target) {\r\n extra.push(\"target: \" + traversal.traverse(target).getCode());\r\n }\r\n const exponent = node.findExpressionAfterToken(\"EXPONENT\");\r\n if (exponent) {\r\n extra.push(\"exponent: \" + traversal.traverse(exponent).getCode());\r\n }\r\n if (concat.includes(\"NO-GROUPING\")) {\r\n extra.push(\"noGrouping: true\");\r\n }\r\n if (concat.includes(\"NO-SIGN\")) {\r\n extra.push(\"noSign: true\");\r\n }\r\n const expr = node.findDirectExpression(abaplint.Expressions.Source);\r\n if (expr === undefined) {\r\n source = new chunk_1.Chunk().append(\"''\", node, traversal);\r\n extra.push(\"newLine: true\");\r\n extra.push(\"skipLine: true\");\r\n }\r\n else {\r\n if (newLine === true) {\r\n extra.push(\"newLine: true\");\r\n }\r\n const concat = expr.concatTokens();\r\n if (concat.startsWith(\"'@KERNEL \")) {\r\n // @KERNEL commands must be taken verbatim\r\n return new chunk_1.Chunk().append(concat.substr(9, concat.length - 10), node, traversal);\r\n }\r\n source = traversal.traverse(expr);\r\n }\r\n const chunk = new chunk_1.Chunk();\r\n chunk.append(\"abap.statements.write(\", node, traversal);\r\n chunk.appendChunk(source);\r\n if (extra.length === 0) {\r\n chunk.append(\");\", node.getLastToken(), traversal);\r\n }\r\n else {\r\n chunk.append(\",{\" + extra.join(\",\") + \"});\", node.getLastToken(), traversal);\r\n }\r\n return chunk;\r\n }\r\n}\r\nexports.WriteTranspiler = WriteTranspiler;\r\n//# sourceMappingURL=write.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/write.js?");
|
|
14661
14661
|
|
|
14662
14662
|
/***/ }),
|
|
14663
14663
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.39",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"bin": {
|
|
6
6
|
"abap_transpile": "./abap_transpile"
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"author": "abaplint",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@abaplint/transpiler": "^2.0.
|
|
28
|
+
"@abaplint/transpiler": "^2.0.39",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|
|
32
32
|
"@abaplint/core": "^2.91.3",
|
|
33
33
|
"progress": "^2.0.3",
|
|
34
34
|
"webpack": "^5.73.0",
|
|
35
|
-
"webpack-cli": "^4.
|
|
35
|
+
"webpack-cli": "^4.10.0",
|
|
36
36
|
"typescript": "^4.7.3"
|
|
37
37
|
}
|
|
38
38
|
}
|