@abaplint/transpiler-cli 2.12.30 → 2.12.32
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 +71 -5
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -27269,7 +27269,7 @@ class Select {
|
|
|
27269
27269
|
}
|
|
27270
27270
|
}
|
|
27271
27271
|
static buildStructureType(fields, dbSources, scope) {
|
|
27272
|
-
var _a, _b, _c;
|
|
27272
|
+
var _a, _b, _c, _d, _e, _f;
|
|
27273
27273
|
if (fields.length === 1 && dbSources.length === 1) {
|
|
27274
27274
|
const dbType = (_a = dbSources[0]) === null || _a === void 0 ? void 0 : _a.parseType(scope.getRegistry());
|
|
27275
27275
|
if (dbType === undefined) {
|
|
@@ -27310,8 +27310,36 @@ class Select {
|
|
|
27310
27310
|
}
|
|
27311
27311
|
}
|
|
27312
27312
|
}
|
|
27313
|
+
else if (dbSources.length === 1) {
|
|
27314
|
+
const dbType = (_d = dbSources[0]) === null || _d === void 0 ? void 0 : _d.parseType(scope.getRegistry());
|
|
27315
|
+
if (dbType === undefined) {
|
|
27316
|
+
const name = ((_e = dbSources[0]) === null || _e === void 0 ? void 0 : _e.getName()) || "buildStructureTypeError";
|
|
27317
|
+
if (scope.getRegistry().inErrorNamespace(name) === true) {
|
|
27318
|
+
return new basic_1.UnknownType("Select, " + name + " not found");
|
|
27319
|
+
}
|
|
27320
|
+
else {
|
|
27321
|
+
return basic_1.VoidType.get((_f = dbSources[0]) === null || _f === void 0 ? void 0 : _f.getName());
|
|
27322
|
+
}
|
|
27323
|
+
}
|
|
27324
|
+
if (!(dbType instanceof basic_1.StructureType)) {
|
|
27325
|
+
return basic_1.VoidType.get("SELECT_todo14");
|
|
27326
|
+
}
|
|
27327
|
+
const allFieldsSimple = fields.every(f => isSimple.test(f.code));
|
|
27328
|
+
if (allFieldsSimple === true) {
|
|
27329
|
+
const components = [];
|
|
27330
|
+
for (const field of fields) {
|
|
27331
|
+
const type = dbType.getComponentByName(field.code);
|
|
27332
|
+
if (type === undefined) {
|
|
27333
|
+
return basic_1.VoidType.get("SELECT_todo9");
|
|
27334
|
+
}
|
|
27335
|
+
components.push({ name: field.as || field.code, type });
|
|
27336
|
+
}
|
|
27337
|
+
return new basic_1.StructureType(components);
|
|
27338
|
+
}
|
|
27339
|
+
return basic_1.VoidType.get("SELECT_todo12");
|
|
27340
|
+
}
|
|
27313
27341
|
else {
|
|
27314
|
-
return basic_1.VoidType.get("
|
|
27342
|
+
return basic_1.VoidType.get("SELECT_todo13");
|
|
27315
27343
|
}
|
|
27316
27344
|
}
|
|
27317
27345
|
static buildTableType(fields, dbSources, scope) {
|
|
@@ -54555,7 +54583,7 @@ class Registry {
|
|
|
54555
54583
|
}
|
|
54556
54584
|
static abaplintVersion() {
|
|
54557
54585
|
// magic, see build script "version.sh"
|
|
54558
|
-
return "2.115.
|
|
54586
|
+
return "2.115.27";
|
|
54559
54587
|
}
|
|
54560
54588
|
getDDICReferences() {
|
|
54561
54589
|
return this.ddicReferences;
|
|
@@ -85125,6 +85153,8 @@ var EventKind;
|
|
|
85125
85153
|
EventKind[EventKind["None"] = 0] = "None";
|
|
85126
85154
|
EventKind[EventKind["Start"] = 1] = "Start";
|
|
85127
85155
|
EventKind[EventKind["End"] = 2] = "End";
|
|
85156
|
+
EventKind[EventKind["AtLineSelection"] = 3] = "AtLineSelection";
|
|
85157
|
+
EventKind[EventKind["AtSelectionScreen"] = 4] = "AtSelectionScreen";
|
|
85128
85158
|
})(EventKind || (EventKind = {}));
|
|
85129
85159
|
class Rearranger {
|
|
85130
85160
|
run(type, node) {
|
|
@@ -85150,13 +85180,16 @@ class Rearranger {
|
|
|
85150
85180
|
// Check if there are any list event statements
|
|
85151
85181
|
const hasStartOfSelection = children.some(c => c instanceof core_1.Nodes.StatementNode && c.get() instanceof core_1.Statements.StartOfSelection);
|
|
85152
85182
|
const hasEndOfSelection = children.some(c => c instanceof core_1.Nodes.StatementNode && c.get() instanceof core_1.Statements.EndOfSelection);
|
|
85153
|
-
|
|
85183
|
+
const hasAtLineSelection = children.some(c => c instanceof core_1.Nodes.StatementNode && c.get() instanceof core_1.Statements.AtLineSelection);
|
|
85184
|
+
const hasAtSelectionScreen = children.some(c => c instanceof core_1.Nodes.StatementNode && c.get() instanceof core_1.Statements.AtSelectionScreen);
|
|
85185
|
+
if (!hasStartOfSelection && !hasEndOfSelection && !hasAtLineSelection && !hasAtSelectionScreen) {
|
|
85154
85186
|
return node;
|
|
85155
85187
|
}
|
|
85156
85188
|
// Split children into: preamble (before first event), event blocks (keyed by event type)
|
|
85157
85189
|
const preamble = [];
|
|
85158
85190
|
const startBlocks = [];
|
|
85159
85191
|
const endBlocks = [];
|
|
85192
|
+
// AT LINE-SELECTION and AT SELECTION-SCREEN are interactive events, their blocks are discarded
|
|
85160
85193
|
let currentEvent = EventKind.None;
|
|
85161
85194
|
for (const child of children) {
|
|
85162
85195
|
if (child instanceof core_1.Nodes.StatementNode && child.get() instanceof core_1.Statements.StartOfSelection) {
|
|
@@ -85167,6 +85200,12 @@ class Rearranger {
|
|
|
85167
85200
|
currentEvent = EventKind.End;
|
|
85168
85201
|
endBlocks.push(child);
|
|
85169
85202
|
}
|
|
85203
|
+
else if (child instanceof core_1.Nodes.StatementNode && child.get() instanceof core_1.Statements.AtLineSelection) {
|
|
85204
|
+
currentEvent = EventKind.AtLineSelection;
|
|
85205
|
+
}
|
|
85206
|
+
else if (child instanceof core_1.Nodes.StatementNode && child.get() instanceof core_1.Statements.AtSelectionScreen) {
|
|
85207
|
+
currentEvent = EventKind.AtSelectionScreen;
|
|
85208
|
+
}
|
|
85170
85209
|
else {
|
|
85171
85210
|
switch (currentEvent) {
|
|
85172
85211
|
case EventKind.None:
|
|
@@ -85178,12 +85217,17 @@ class Rearranger {
|
|
|
85178
85217
|
case EventKind.End:
|
|
85179
85218
|
endBlocks.push(child);
|
|
85180
85219
|
break;
|
|
85220
|
+
case EventKind.AtLineSelection:
|
|
85221
|
+
case EventKind.AtSelectionScreen:
|
|
85222
|
+
// discard: these are interactive events not executed in batch
|
|
85223
|
+
break;
|
|
85181
85224
|
default:
|
|
85182
85225
|
break;
|
|
85183
85226
|
}
|
|
85184
85227
|
}
|
|
85185
85228
|
}
|
|
85186
85229
|
// Reassemble: preamble, then START-OF-SELECTION blocks, then END-OF-SELECTION blocks
|
|
85230
|
+
// AT LINE-SELECTION and AT SELECTION-SCREEN blocks are omitted
|
|
85187
85231
|
const newChildren = [...preamble, ...startBlocks, ...endBlocks];
|
|
85188
85232
|
node.setChildren(newChildren);
|
|
85189
85233
|
return node;
|
|
@@ -85698,6 +85742,27 @@ exports.AtTranspiler = AtTranspiler;
|
|
|
85698
85742
|
|
|
85699
85743
|
/***/ },
|
|
85700
85744
|
|
|
85745
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/at_line_selection.js"
|
|
85746
|
+
/*!*************************************************************************************!*\
|
|
85747
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/at_line_selection.js ***!
|
|
85748
|
+
\*************************************************************************************/
|
|
85749
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
85750
|
+
|
|
85751
|
+
"use strict";
|
|
85752
|
+
|
|
85753
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
85754
|
+
exports.AtLineSelectionTranspiler = void 0;
|
|
85755
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
85756
|
+
class AtLineSelectionTranspiler {
|
|
85757
|
+
transpile(_node) {
|
|
85758
|
+
return new chunk_1.Chunk("");
|
|
85759
|
+
}
|
|
85760
|
+
}
|
|
85761
|
+
exports.AtLineSelectionTranspiler = AtLineSelectionTranspiler;
|
|
85762
|
+
//# sourceMappingURL=at_line_selection.js.map
|
|
85763
|
+
|
|
85764
|
+
/***/ },
|
|
85765
|
+
|
|
85701
85766
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/at_selection_screen.js"
|
|
85702
85767
|
/*!***************************************************************************************!*\
|
|
85703
85768
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/at_selection_screen.js ***!
|
|
@@ -85711,7 +85776,7 @@ exports.AtSelectionScreenTranspiler = void 0;
|
|
|
85711
85776
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
85712
85777
|
class AtSelectionScreenTranspiler {
|
|
85713
85778
|
transpile(_node, _traversal) {
|
|
85714
|
-
return new chunk_1.Chunk(
|
|
85779
|
+
return new chunk_1.Chunk(``);
|
|
85715
85780
|
}
|
|
85716
85781
|
}
|
|
85717
85782
|
exports.AtSelectionScreenTranspiler = AtSelectionScreenTranspiler;
|
|
@@ -88406,6 +88471,7 @@ __exportStar(__webpack_require__(/*! ./split */ "./node_modules/@abaplint/transp
|
|
|
88406
88471
|
__exportStar(__webpack_require__(/*! ./start_of_selection */ "./node_modules/@abaplint/transpiler/build/src/statements/start_of_selection.js"), exports);
|
|
88407
88472
|
__exportStar(__webpack_require__(/*! ./submit */ "./node_modules/@abaplint/transpiler/build/src/statements/submit.js"), exports);
|
|
88408
88473
|
__exportStar(__webpack_require__(/*! ./subtract */ "./node_modules/@abaplint/transpiler/build/src/statements/subtract.js"), exports);
|
|
88474
|
+
__exportStar(__webpack_require__(/*! ./at_line_selection */ "./node_modules/@abaplint/transpiler/build/src/statements/at_line_selection.js"), exports);
|
|
88409
88475
|
__exportStar(__webpack_require__(/*! ./syntax_check */ "./node_modules/@abaplint/transpiler/build/src/statements/syntax_check.js"), exports);
|
|
88410
88476
|
__exportStar(__webpack_require__(/*! ./system_call */ "./node_modules/@abaplint/transpiler/build/src/statements/system_call.js"), exports);
|
|
88411
88477
|
__exportStar(__webpack_require__(/*! ./tables */ "./node_modules/@abaplint/transpiler/build/src/statements/tables.js"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.32",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"author": "abaplint",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@abaplint/core": "^2.115.
|
|
31
|
-
"@abaplint/transpiler": "^2.12.
|
|
30
|
+
"@abaplint/core": "^2.115.27",
|
|
31
|
+
"@abaplint/transpiler": "^2.12.32",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^24.10.13",
|
|
34
34
|
"@types/progress": "^2.0.7",
|