@abaplint/transpiler-cli 1.8.35 → 1.8.38

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.
Files changed (2) hide show
  1. package/build/bundle.js +8 -8
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -13480,7 +13480,7 @@ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\n
13480
13480
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
13481
13481
 
13482
13482
  "use strict";
13483
- eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.AssignTranspiler = void 0;\r\nconst abaplint = __webpack_require__(/*! @abaplint/core */ \"./node_modules/@abaplint/core/build/src/index.js\");\r\nconst expressions_1 = __webpack_require__(/*! ../expressions */ \"./node_modules/@abaplint/transpiler/build/src/expressions/index.js\");\r\nconst chunk_1 = __webpack_require__(/*! ../chunk */ \"./node_modules/@abaplint/transpiler/build/src/chunk.js\");\r\nclass AssignTranspiler {\r\n transpile(node, traversal) {\r\n const sources = node.findDirectExpressions(abaplint.Expressions.Source).map(e => new expressions_1.SourceTranspiler(false).transpile(e, traversal).getCode());\r\n const fs = new expressions_1.FieldSymbolTranspiler().transpile(node.findDirectExpression(abaplint.Expressions.FSTarget), traversal).getCode();\r\n const options = [];\r\n const concat = node.concatTokens();\r\n if (concat.startsWith(\"ASSIGN COMPONENT \")) {\r\n options.push(\"component: \" + sources.shift());\r\n }\r\n options.push(\"target: \" + fs);\r\n options.push(\"source: \" + sources.pop());\r\n if (concat.endsWith(\" CASTING.\")) {\r\n options.push(\"casting: true\");\r\n }\r\n return new chunk_1.Chunk().append(\"abap.statements.assign({\", node, traversal)\r\n .appendString(options.join(\", \"))\r\n .append(\"});\", node.getLastToken(), traversal);\r\n }\r\n}\r\nexports.AssignTranspiler = AssignTranspiler;\r\n//# sourceMappingURL=assign.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/assign.js?");
13483
+ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.AssignTranspiler = void 0;\r\nconst abaplint = __webpack_require__(/*! @abaplint/core */ \"./node_modules/@abaplint/core/build/src/index.js\");\r\nconst expressions_1 = __webpack_require__(/*! ../expressions */ \"./node_modules/@abaplint/transpiler/build/src/expressions/index.js\");\r\nconst chunk_1 = __webpack_require__(/*! ../chunk */ \"./node_modules/@abaplint/transpiler/build/src/chunk.js\");\r\nclass AssignTranspiler {\r\n transpile(node, traversal) {\r\n const sources = node.findDirectExpressions(abaplint.Expressions.Source).map(e => new expressions_1.SourceTranspiler(false).transpile(e, traversal).getCode());\r\n const fs = new expressions_1.FieldSymbolTranspiler().transpile(node.findDirectExpression(abaplint.Expressions.FSTarget), traversal).getCode();\r\n const options = [];\r\n const concat = node.concatTokens().toUpperCase();\r\n if (concat.startsWith(\"ASSIGN COMPONENT \")) {\r\n options.push(\"component: \" + sources.shift());\r\n }\r\n options.push(\"target: \" + fs);\r\n options.push(\"source: \" + sources.pop());\r\n if (concat.endsWith(\" CASTING.\")) {\r\n options.push(\"casting: true\");\r\n }\r\n return new chunk_1.Chunk().append(\"abap.statements.assign({\", node, traversal)\r\n .appendString(options.join(\", \"))\r\n .append(\"});\", node.getLastToken(), traversal);\r\n }\r\n}\r\nexports.AssignTranspiler = AssignTranspiler;\r\n//# sourceMappingURL=assign.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/assign.js?");
13484
13484
 
13485
13485
  /***/ }),
13486
13486
 
@@ -13524,7 +13524,7 @@ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\n
13524
13524
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
13525
13525
 
13526
13526
  "use strict";
13527
- eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.CallFunctionTranspiler = 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 CallFunctionTranspiler {\r\n transpile(node, traversal) {\r\n var _a, _b;\r\n const fmname = (_a = node.findDirectExpression(abaplint.Expressions.FunctionName)) === null || _a === void 0 ? void 0 : _a.concatTokens();\r\n if (fmname === undefined) {\r\n throw \"CallFunctionTranspilerNameNotFound\";\r\n }\r\n let param = \"\";\r\n const fmp = node.findDirectExpression(abaplint.Expressions.FunctionParameters);\r\n if (fmp) {\r\n param = traversal.traverse(fmp).getCode();\r\n }\r\n const ret = new chunk_1.Chunk();\r\n const dest = (_b = node.findDirectExpression(abaplint.Expressions.Destination)) === null || _b === void 0 ? void 0 : _b.findDirectExpression(abaplint.Expressions.Source);\r\n if (dest) {\r\n param = param.replace(\"{\", \",\").replace(/}$/, \"\");\r\n ret.appendString(`await abap.statements.callFunction({name:${fmname},destination:${dest.concatTokens()}${param}});`);\r\n }\r\n else {\r\n ret.appendString(`await abap.FunctionModules[${fmname}](${param});`);\r\n }\r\n return ret;\r\n }\r\n}\r\nexports.CallFunctionTranspiler = CallFunctionTranspiler;\r\n//# sourceMappingURL=call_function.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/call_function.js?");
13527
+ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.CallFunctionTranspiler = 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 CallFunctionTranspiler {\r\n transpile(node, traversal) {\r\n var _a, _b;\r\n const fmname = (_a = node.findDirectExpression(abaplint.Expressions.FunctionName)) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase();\r\n if (fmname === undefined) {\r\n throw \"CallFunctionTranspilerNameNotFound\";\r\n }\r\n let param = \"\";\r\n const fmp = node.findDirectExpression(abaplint.Expressions.FunctionParameters);\r\n if (fmp) {\r\n param = traversal.traverse(fmp).getCode();\r\n }\r\n const ret = new chunk_1.Chunk();\r\n const dest = (_b = node.findDirectExpression(abaplint.Expressions.Destination)) === null || _b === void 0 ? void 0 : _b.findDirectExpression(abaplint.Expressions.Source);\r\n if (dest) {\r\n param = param.replace(\"{\", \",\").replace(/}$/, \"\");\r\n ret.appendString(`await abap.statements.callFunction({name:${fmname},destination:${dest.concatTokens()}${param}});`);\r\n }\r\n else {\r\n ret.appendString(`await abap.FunctionModules[${fmname}](${param});`);\r\n }\r\n return ret;\r\n }\r\n}\r\nexports.CallFunctionTranspiler = CallFunctionTranspiler;\r\n//# sourceMappingURL=call_function.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/call_function.js?");
13528
13528
 
13529
13529
  /***/ }),
13530
13530
 
@@ -13634,7 +13634,7 @@ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\n
13634
13634
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
13635
13635
 
13636
13636
  "use strict";
13637
- eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.ConcatenateTranspiler = 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 ConcatenateTranspiler {\r\n transpile(node, traversal) {\r\n var _a;\r\n const concat = node.concatTokens();\r\n const slist = [];\r\n for (const s of node.findDirectExpressions(abaplint.Expressions.Source)) {\r\n slist.push(traversal.traverse(s));\r\n }\r\n let extra = \"\";\r\n if (node.findExpressionAfterToken(\"BY\")) {\r\n extra = `, separatedBy: ${(_a = slist.pop()) === null || _a === void 0 ? void 0 : _a.getCode()}`;\r\n }\r\n if (concat.startsWith(\"CONCATENATE LINES OF \")) {\r\n extra += \", lines: true\";\r\n }\r\n const target = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Target));\r\n return new chunk_1.Chunk()\r\n .append(\"abap.statements.concatenate({source: [\", node, traversal)\r\n .join(slist)\r\n .appendString(\"], target: \")\r\n .appendChunk(target)\r\n .append(extra + \"});\", node.getLastToken(), traversal);\r\n }\r\n}\r\nexports.ConcatenateTranspiler = ConcatenateTranspiler;\r\n//# sourceMappingURL=concatenate.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/concatenate.js?");
13637
+ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.ConcatenateTranspiler = 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 ConcatenateTranspiler {\r\n transpile(node, traversal) {\r\n var _a;\r\n const concat = node.concatTokens().toUpperCase();\r\n const slist = [];\r\n for (const s of node.findDirectExpressions(abaplint.Expressions.Source)) {\r\n slist.push(traversal.traverse(s));\r\n }\r\n let extra = \"\";\r\n if (node.findExpressionAfterToken(\"BY\")) {\r\n extra = `, separatedBy: ${(_a = slist.pop()) === null || _a === void 0 ? void 0 : _a.getCode()}`;\r\n }\r\n if (concat.startsWith(\"CONCATENATE LINES OF \")) {\r\n extra += \", lines: true\";\r\n }\r\n const target = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Target));\r\n return new chunk_1.Chunk()\r\n .append(\"abap.statements.concatenate({source: [\", node, traversal)\r\n .join(slist)\r\n .appendString(\"], target: \")\r\n .appendChunk(target)\r\n .append(extra + \"});\", node.getLastToken(), traversal);\r\n }\r\n}\r\nexports.ConcatenateTranspiler = ConcatenateTranspiler;\r\n//# sourceMappingURL=concatenate.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/concatenate.js?");
13638
13638
 
13639
13639
  /***/ }),
13640
13640
 
@@ -13645,7 +13645,7 @@ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\n
13645
13645
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
13646
13646
 
13647
13647
  "use strict";
13648
- eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.CondenseTranspiler = 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 CondenseTranspiler {\r\n transpile(node, traversal) {\r\n const target = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Target));\r\n const noGaps = node.concatTokens().includes(\" NO-GAPS\");\r\n const ret = new chunk_1.Chunk();\r\n ret.append(\"abap.statements.condense(\", node, traversal);\r\n ret.appendChunk(target);\r\n ret.append(\", {nogaps: \" + noGaps + \"});\", node.getLastToken(), traversal);\r\n return ret;\r\n }\r\n}\r\nexports.CondenseTranspiler = CondenseTranspiler;\r\n//# sourceMappingURL=condense.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/condense.js?");
13648
+ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.CondenseTranspiler = 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 CondenseTranspiler {\r\n transpile(node, traversal) {\r\n const target = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Target));\r\n const noGaps = node.concatTokens().toUpperCase().includes(\" NO-GAPS\");\r\n const ret = new chunk_1.Chunk();\r\n ret.append(\"abap.statements.condense(\", node, traversal);\r\n ret.appendChunk(target);\r\n ret.append(\", {nogaps: \" + noGaps + \"});\", node.getLastToken(), traversal);\r\n return ret;\r\n }\r\n}\r\nexports.CondenseTranspiler = CondenseTranspiler;\r\n//# sourceMappingURL=condense.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/condense.js?");
13649
13649
 
13650
13650
  /***/ }),
13651
13651
 
@@ -13689,7 +13689,7 @@ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\n
13689
13689
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
13690
13690
 
13691
13691
  "use strict";
13692
- eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.CreateDataTranspiler = 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\nconst expressions_1 = __webpack_require__(/*! ../expressions */ \"./node_modules/@abaplint/transpiler/build/src/expressions/index.js\");\r\nconst transpile_types_1 = __webpack_require__(/*! ../transpile_types */ \"./node_modules/@abaplint/transpiler/build/src/transpile_types.js\");\r\nclass CreateDataTranspiler {\r\n transpile(node, traversal) {\r\n var _a, _b, _c;\r\n const targetNode = node.findDirectExpression(abaplint.Expressions.Target);\r\n const target = traversal.traverse(targetNode);\r\n const concat = node.concatTokens();\r\n const options = [];\r\n let dynamic = (_a = node.findDirectExpression(abaplint.Expressions.Dynamic)) === null || _a === void 0 ? void 0 : _a.findFirstExpression(abaplint.Expressions.ConstantString);\r\n if (dynamic) {\r\n options.push(`\"name\": ` + dynamic.getFirstToken().getStr());\r\n }\r\n else {\r\n dynamic = (_b = node.findDirectExpression(abaplint.Expressions.Dynamic)) === null || _b === void 0 ? void 0 : _b.findFirstExpression(abaplint.Expressions.FieldChain);\r\n if (dynamic) {\r\n options.push(`\"name\": ` + new expressions_1.FieldChainTranspiler(true).transpile(dynamic, traversal).getCode());\r\n }\r\n }\r\n const typeNameNode = node.findDirectExpression(abaplint.Expressions.TypeName);\r\n if (typeNameNode) {\r\n const id = (_c = traversal.findCurrentScopeByToken(typeNameNode.getFirstToken())) === null || _c === void 0 ? void 0 : _c.findType(typeNameNode.concatTokens());\r\n if (id) {\r\n options.push(`\"type\": ` + new transpile_types_1.TranspileTypes().toType(id.getType()));\r\n }\r\n }\r\n if (node.findDirectTokenByText(\"TABLE\")) {\r\n options.push(`\"table\": true`);\r\n }\r\n if (concat.includes(\" LIKE LINE OF \")) {\r\n const so = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Source));\r\n options.push(`\"likeLineOf\": ` + so.getCode());\r\n }\r\n let add = \"\";\r\n if (options.length > 0) {\r\n add = \",{\" + options.join(\",\") + \"}\";\r\n }\r\n return new chunk_1.Chunk(\"abap.statements.createData(\" + target.getCode() + add + \");\");\r\n }\r\n}\r\nexports.CreateDataTranspiler = CreateDataTranspiler;\r\n//# sourceMappingURL=create_data.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/create_data.js?");
13692
+ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.CreateDataTranspiler = 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\nconst expressions_1 = __webpack_require__(/*! ../expressions */ \"./node_modules/@abaplint/transpiler/build/src/expressions/index.js\");\r\nconst transpile_types_1 = __webpack_require__(/*! ../transpile_types */ \"./node_modules/@abaplint/transpiler/build/src/transpile_types.js\");\r\nclass CreateDataTranspiler {\r\n transpile(node, traversal) {\r\n var _a, _b, _c;\r\n const targetNode = node.findDirectExpression(abaplint.Expressions.Target);\r\n const target = traversal.traverse(targetNode);\r\n const concat = node.concatTokens().toUpperCase();\r\n const options = [];\r\n let dynamic = (_a = node.findDirectExpression(abaplint.Expressions.Dynamic)) === null || _a === void 0 ? void 0 : _a.findFirstExpression(abaplint.Expressions.ConstantString);\r\n if (dynamic) {\r\n options.push(`\"name\": ` + dynamic.getFirstToken().getStr());\r\n }\r\n else {\r\n dynamic = (_b = node.findDirectExpression(abaplint.Expressions.Dynamic)) === null || _b === void 0 ? void 0 : _b.findFirstExpression(abaplint.Expressions.FieldChain);\r\n if (dynamic) {\r\n options.push(`\"name\": ` + new expressions_1.FieldChainTranspiler(true).transpile(dynamic, traversal).getCode());\r\n }\r\n }\r\n const typeNameNode = node.findDirectExpression(abaplint.Expressions.TypeName);\r\n if (typeNameNode) {\r\n const id = (_c = traversal.findCurrentScopeByToken(typeNameNode.getFirstToken())) === null || _c === void 0 ? void 0 : _c.findType(typeNameNode.concatTokens());\r\n if (id) {\r\n options.push(`\"type\": ` + new transpile_types_1.TranspileTypes().toType(id.getType()));\r\n }\r\n }\r\n if (node.findDirectTokenByText(\"TABLE\")) {\r\n options.push(`\"table\": true`);\r\n }\r\n if (concat.includes(\" LIKE LINE OF \")) {\r\n const so = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Source));\r\n options.push(`\"likeLineOf\": ` + so.getCode());\r\n }\r\n let add = \"\";\r\n if (options.length > 0) {\r\n add = \",{\" + options.join(\",\") + \"}\";\r\n }\r\n return new chunk_1.Chunk(\"abap.statements.createData(\" + target.getCode() + add + \");\");\r\n }\r\n}\r\nexports.CreateDataTranspiler = CreateDataTranspiler;\r\n//# sourceMappingURL=create_data.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/create_data.js?");
13693
13693
 
13694
13694
  /***/ }),
13695
13695
 
@@ -13744,7 +13744,7 @@ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\n
13744
13744
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
13745
13745
 
13746
13746
  "use strict";
13747
- eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.DescribeTranspiler = void 0;\r\nconst chunk_1 = __webpack_require__(/*! ../chunk */ \"./node_modules/@abaplint/transpiler/build/src/chunk.js\");\r\nclass DescribeTranspiler {\r\n transpile(node, traversal) {\r\n const options = [];\r\n const concat = node.concatTokens().toUpperCase();\r\n const field = node.findExpressionAfterToken(\"FIELD\");\r\n if (field) {\r\n options.push(\"field: \" + traversal.traverse(field).getCode());\r\n }\r\n const type = node.findExpressionAfterToken(\"TYPE\");\r\n if (type) {\r\n options.push(\"type: \" + traversal.traverse(type).getCode());\r\n }\r\n const length = node.findExpressionAfterToken(\"LENGTH\");\r\n if (length) {\r\n options.push(\"length: \" + traversal.traverse(length).getCode());\r\n }\r\n if (concat.includes(\"IN CHARACTER MODE\")) {\r\n options.push(\"mode: 'CHARACTER'\");\r\n }\r\n if (concat.includes(\"IN BYTE MODE\")) {\r\n options.push(\"mode: 'BYTE'\");\r\n }\r\n return new chunk_1.Chunk()\r\n .append(\"abap.statements.describe({\", node, traversal)\r\n .appendString(options.join(\", \"))\r\n .append(\"});\", node.getLastToken(), traversal);\r\n }\r\n}\r\nexports.DescribeTranspiler = DescribeTranspiler;\r\n//# sourceMappingURL=describe.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/describe.js?");
13747
+ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.DescribeTranspiler = void 0;\r\nconst chunk_1 = __webpack_require__(/*! ../chunk */ \"./node_modules/@abaplint/transpiler/build/src/chunk.js\");\r\nclass DescribeTranspiler {\r\n transpile(node, traversal) {\r\n const options = [];\r\n const concat = node.concatTokens().toUpperCase();\r\n const field = node.findExpressionAfterToken(\"FIELD\");\r\n if (field) {\r\n options.push(\"field: \" + traversal.traverse(field).getCode());\r\n }\r\n const type = node.findExpressionAfterToken(\"TYPE\");\r\n if (type) {\r\n options.push(\"type: \" + traversal.traverse(type).getCode());\r\n }\r\n const length = node.findExpressionAfterToken(\"LENGTH\");\r\n if (length) {\r\n options.push(\"length: \" + traversal.traverse(length).getCode());\r\n }\r\n const lines = node.findExpressionAfterToken(\"LINES\");\r\n if (lines) {\r\n options.push(\"lines: \" + traversal.traverse(lines).getCode());\r\n }\r\n const table = node.findExpressionAfterToken(\"TABLE\");\r\n if (table) {\r\n options.push(\"table: \" + traversal.traverse(table).getCode());\r\n }\r\n if (concat.includes(\"IN CHARACTER MODE\")) {\r\n options.push(\"mode: 'CHARACTER'\");\r\n }\r\n if (concat.includes(\"IN BYTE MODE\")) {\r\n options.push(\"mode: 'BYTE'\");\r\n }\r\n return new chunk_1.Chunk()\r\n .append(\"abap.statements.describe({\", node, traversal)\r\n .appendString(options.join(\", \"))\r\n .append(\"});\", node.getLastToken(), traversal);\r\n }\r\n}\r\nexports.DescribeTranspiler = DescribeTranspiler;\r\n//# sourceMappingURL=describe.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/describe.js?");
13748
13748
 
13749
13749
  /***/ }),
13750
13750
 
@@ -14019,7 +14019,7 @@ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\n
14019
14019
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
14020
14020
 
14021
14021
  "use strict";
14022
- eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.GetTimeTranspiler = 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 GetTimeTranspiler {\r\n transpile(node, traversal) {\r\n const concat = node.concatTokens();\r\n let options = \"\";\r\n if (concat.startsWith(\"GET TIME FIELD\")) {\r\n options = \"{field: \" + traversal.traverse(node.findFirstExpression(abaplint.Expressions.Target)).getCode() + \"}\";\r\n }\r\n else if (concat.startsWith(\"GET TIME STAMP FIELD\")) {\r\n options = \"{stamp: \" + traversal.traverse(node.findFirstExpression(abaplint.Expressions.Target)).getCode() + \"}\";\r\n }\r\n return new chunk_1.Chunk()\r\n .append(\"abap.statements.getTime(\", node, traversal)\r\n .appendString(options)\r\n .append(\");\", node.getLastToken(), traversal);\r\n }\r\n}\r\nexports.GetTimeTranspiler = GetTimeTranspiler;\r\n//# sourceMappingURL=get_time.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/get_time.js?");
14022
+ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.GetTimeTranspiler = 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 GetTimeTranspiler {\r\n transpile(node, traversal) {\r\n const concat = node.concatTokens().toUpperCase();\r\n let options = \"\";\r\n if (concat.startsWith(\"GET TIME FIELD\")) {\r\n options = \"{field: \" + traversal.traverse(node.findFirstExpression(abaplint.Expressions.Target)).getCode() + \"}\";\r\n }\r\n else if (concat.startsWith(\"GET TIME STAMP FIELD\")) {\r\n options = \"{stamp: \" + traversal.traverse(node.findFirstExpression(abaplint.Expressions.Target)).getCode() + \"}\";\r\n }\r\n return new chunk_1.Chunk()\r\n .append(\"abap.statements.getTime(\", node, traversal)\r\n .appendString(options)\r\n .append(\");\", node.getLastToken(), traversal);\r\n }\r\n}\r\nexports.GetTimeTranspiler = GetTimeTranspiler;\r\n//# sourceMappingURL=get_time.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/get_time.js?");
14023
14023
 
14024
14024
  /***/ }),
14025
14025
 
@@ -14470,7 +14470,7 @@ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\n
14470
14470
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
14471
14471
 
14472
14472
  "use strict";
14473
- eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.WaitTranspiler = 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 WaitTranspiler {\r\n transpile(node, traversal) {\r\n const concat = node.concatTokens();\r\n if (concat.includes(\" FOR PUSH CHANNELS \") === false) {\r\n return new chunk_1.Chunk().appendString(\"WAIT_TODO\");\r\n }\r\n const lookup = traversal.lookupClassOrInterface(\"KERNEL_PUSH_CHANNELS\", node.getFirstToken());\r\n const options = [];\r\n const cond = node.findFirstExpression(abaplint.Expressions.Cond);\r\n if (cond) {\r\n options.push(\"cond: \" + traversal.traverse(cond).getCode());\r\n }\r\n const seconds = node.findExpressionAfterToken(\"TO\");\r\n if (seconds) {\r\n options.push(\"seconds: \" + traversal.traverse(seconds).getCode());\r\n }\r\n const call = `await ${lookup}.wait({${options.join(\",\")}});`;\r\n return new chunk_1.Chunk().append(`if (${lookup} === undefined) throw new Error(\"Wait, kernel class missing\");\\n${call}`, node, traversal);\r\n }\r\n}\r\nexports.WaitTranspiler = WaitTranspiler;\r\n//# sourceMappingURL=wait.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/wait.js?");
14473
+ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.WaitTranspiler = 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 WaitTranspiler {\r\n transpile(node, traversal) {\r\n const concat = node.concatTokens().toUpperCase();\r\n if (concat.includes(\" FOR PUSH CHANNELS \") === false) {\r\n return new chunk_1.Chunk().appendString(\"WAIT_TODO\");\r\n }\r\n const lookup = traversal.lookupClassOrInterface(\"KERNEL_PUSH_CHANNELS\", node.getFirstToken());\r\n const options = [];\r\n const cond = node.findFirstExpression(abaplint.Expressions.Cond);\r\n if (cond) {\r\n options.push(\"cond: \" + traversal.traverse(cond).getCode());\r\n }\r\n const seconds = node.findExpressionAfterToken(\"TO\");\r\n if (seconds) {\r\n options.push(\"seconds: \" + traversal.traverse(seconds).getCode());\r\n }\r\n const call = `await ${lookup}.wait({${options.join(\",\")}});`;\r\n return new chunk_1.Chunk().append(`if (${lookup} === undefined) throw new Error(\"Wait, kernel class missing\");\\n${call}`, node, traversal);\r\n }\r\n}\r\nexports.WaitTranspiler = WaitTranspiler;\r\n//# sourceMappingURL=wait.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/statements/wait.js?");
14474
14474
 
14475
14475
  /***/ }),
14476
14476
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "1.8.35",
3
+ "version": "1.8.38",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "bin": {
6
6
  "abap_transpile": "./abap_transpile"
@@ -24,7 +24,7 @@
24
24
  "author": "abaplint",
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@abaplint/transpiler": "^1.8.35",
27
+ "@abaplint/transpiler": "^1.8.38",
28
28
  "@types/glob": "^7.2.0",
29
29
  "glob": "^7.2.0",
30
30
  "@types/progress": "^2.0.5",