@abaplint/transpiler-cli 2.11.4 → 2.11.6
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 +40 -16
- package/package.json +5 -5
package/build/bundle.js
CHANGED
|
@@ -33000,6 +33000,7 @@ const target_1 = __webpack_require__(/*! ../expressions/target */ "./node_module
|
|
|
33000
33000
|
const dynamic_1 = __webpack_require__(/*! ../expressions/dynamic */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/dynamic.js");
|
|
33001
33001
|
const basic_1 = __webpack_require__(/*! ../../types/basic */ "./node_modules/@abaplint/core/build/src/abap/types/basic/index.js");
|
|
33002
33002
|
const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
|
|
33003
|
+
const component_chain_1 = __webpack_require__(/*! ../expressions/component_chain */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/component_chain.js");
|
|
33003
33004
|
class Sort {
|
|
33004
33005
|
runSyntax(node, input) {
|
|
33005
33006
|
var _a, _b;
|
|
@@ -33020,23 +33021,24 @@ class Sort {
|
|
|
33020
33021
|
&& !(rowType instanceof basic_1.UnknownType)
|
|
33021
33022
|
&& !(rowType instanceof basic_1.AnyType)) {
|
|
33022
33023
|
for (const component of node.findAllExpressions(Expressions.ComponentChain)) {
|
|
33024
|
+
component_chain_1.ComponentChain.runSyntax(rowType, component, input);
|
|
33025
|
+
/*
|
|
33023
33026
|
if (component.getChildren().length > 1) {
|
|
33024
|
-
|
|
33027
|
+
continue;
|
|
33025
33028
|
}
|
|
33026
33029
|
const cname = component.concatTokens().toUpperCase();
|
|
33027
33030
|
if (cname === "TABLE_LINE") {
|
|
33028
|
-
|
|
33029
|
-
}
|
|
33030
|
-
|
|
33031
|
-
|
|
33032
|
-
|
|
33033
|
-
|
|
33034
|
-
|
|
33035
|
-
|
|
33036
|
-
|
|
33037
|
-
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
33038
|
-
return;
|
|
33031
|
+
continue;
|
|
33032
|
+
} else if (!(rowType instanceof StructureType)) {
|
|
33033
|
+
const message = "SORT, table row is not structured";
|
|
33034
|
+
input.issues.push(syntaxIssue(input, tnode.getFirstToken(), message));
|
|
33035
|
+
return;
|
|
33036
|
+
} else if (rowType.getComponentByName(cname) === undefined) {
|
|
33037
|
+
const message = `Field ${cname} does not exist in table row structure`;
|
|
33038
|
+
input.issues.push(syntaxIssue(input, node.getFirstToken(), message));
|
|
33039
|
+
return;
|
|
33039
33040
|
}
|
|
33041
|
+
*/
|
|
33040
33042
|
}
|
|
33041
33043
|
}
|
|
33042
33044
|
}
|
|
@@ -53604,7 +53606,7 @@ class Registry {
|
|
|
53604
53606
|
}
|
|
53605
53607
|
static abaplintVersion() {
|
|
53606
53608
|
// magic, see build script "version.sh"
|
|
53607
|
-
return "2.113.
|
|
53609
|
+
return "2.113.152";
|
|
53608
53610
|
}
|
|
53609
53611
|
getDDICReferences() {
|
|
53610
53612
|
return this.ddicReferences;
|
|
@@ -78279,6 +78281,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
78279
78281
|
exports.ComponentChainTranspiler = void 0;
|
|
78280
78282
|
const core_1 = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
78281
78283
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
78284
|
+
const traversal_1 = __webpack_require__(/*! ../traversal */ "./node_modules/@abaplint/transpiler/build/src/traversal.js");
|
|
78282
78285
|
class ComponentChainTranspiler {
|
|
78283
78286
|
transpile(node, traversal) {
|
|
78284
78287
|
const ret = new chunk_1.Chunk();
|
|
@@ -78292,6 +78295,25 @@ class ComponentChainTranspiler {
|
|
|
78292
78295
|
}
|
|
78293
78296
|
return ret;
|
|
78294
78297
|
}
|
|
78298
|
+
static concat(node, traversal) {
|
|
78299
|
+
let ret = "";
|
|
78300
|
+
for (const n of node.getChildren()) {
|
|
78301
|
+
if (n.get() instanceof core_1.Expressions.ComponentName) {
|
|
78302
|
+
let prefix = traversal.isInterfaceAttribute(n.getFirstToken());
|
|
78303
|
+
if (prefix === undefined) {
|
|
78304
|
+
prefix = "";
|
|
78305
|
+
}
|
|
78306
|
+
else {
|
|
78307
|
+
prefix = traversal_1.Traversal.escapeNamespace(prefix) + "$";
|
|
78308
|
+
}
|
|
78309
|
+
ret += prefix + n.concatTokens().toLowerCase();
|
|
78310
|
+
}
|
|
78311
|
+
else {
|
|
78312
|
+
ret += n.concatTokens();
|
|
78313
|
+
}
|
|
78314
|
+
}
|
|
78315
|
+
return ret;
|
|
78316
|
+
}
|
|
78295
78317
|
}
|
|
78296
78318
|
exports.ComponentChainTranspiler = ComponentChainTranspiler;
|
|
78297
78319
|
//# sourceMappingURL=component_chain.js.map
|
|
@@ -87122,7 +87144,7 @@ class SetHandlerTranspiler {
|
|
|
87122
87144
|
let eventClass = undefined;
|
|
87123
87145
|
let eventName = undefined;
|
|
87124
87146
|
for (const m of node.findDirectExpressions(abaplint.Expressions.MethodSource)) {
|
|
87125
|
-
methods.push(new expressions_1.MethodSourceTranspiler().transpile(m, traversal).getCode().replace("await ", ""));
|
|
87147
|
+
methods.push(new expressions_1.MethodSourceTranspiler().transpile(m, traversal).getCode().replace("await ", "") + ".bind(this)");
|
|
87126
87148
|
if (eventClass === undefined) {
|
|
87127
87149
|
const nameToken = m.getFirstToken();
|
|
87128
87150
|
const scope = traversal.findCurrentScopeByToken(nameToken);
|
|
@@ -87367,6 +87389,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
87367
87389
|
exports.SortTranspiler = void 0;
|
|
87368
87390
|
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
87369
87391
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
87392
|
+
const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
|
|
87370
87393
|
class SortTranspiler {
|
|
87371
87394
|
transpile(node, traversal) {
|
|
87372
87395
|
const concat = node.concatTokens().toUpperCase();
|
|
@@ -87382,11 +87405,12 @@ class SortTranspiler {
|
|
|
87382
87405
|
const by = [];
|
|
87383
87406
|
for (const c of components) {
|
|
87384
87407
|
const next = this.findNextText(c, node);
|
|
87408
|
+
const concat = expressions_1.ComponentChainTranspiler.concat(c, traversal);
|
|
87385
87409
|
if (next === "DESCENDING") {
|
|
87386
|
-
by.push(`{component: "${
|
|
87410
|
+
by.push(`{component: "${concat}", descending: true}`);
|
|
87387
87411
|
}
|
|
87388
87412
|
else {
|
|
87389
|
-
by.push(`{component: "${
|
|
87413
|
+
by.push(`{component: "${concat}"}`);
|
|
87390
87414
|
}
|
|
87391
87415
|
}
|
|
87392
87416
|
options.push(`by: [${by.join(",")}]`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.6",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"author": "abaplint",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@abaplint/core": "^2.113.
|
|
31
|
-
"@abaplint/transpiler": "^2.11.
|
|
30
|
+
"@abaplint/core": "^2.113.152",
|
|
31
|
+
"@abaplint/transpiler": "^2.11.6",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
|
-
"@types/node": "^
|
|
33
|
+
"@types/node": "^24.2.0",
|
|
34
34
|
"@types/progress": "^2.0.7",
|
|
35
35
|
"glob": "=7.2.0",
|
|
36
36
|
"progress": "^2.0.3",
|
|
37
37
|
"ts-json-schema-generator": "^2.4.0",
|
|
38
|
-
"typescript": "^5.
|
|
38
|
+
"typescript": "^5.9.2",
|
|
39
39
|
"p-limit": "^3.1.0",
|
|
40
40
|
"webpack-cli": "^6.0.1",
|
|
41
41
|
"webpack": "^5.101.0"
|