@abaplint/transpiler-cli 2.14.28 → 2.14.30
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 +2460 -458
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -606,6 +606,7 @@ async function loadLibraries(config) {
|
|
|
606
606
|
const result = [];
|
|
607
607
|
for (const [index, lib] of libs.entries()) {
|
|
608
608
|
const libraryName = names[index];
|
|
609
|
+
const start = Date.now();
|
|
609
610
|
let dir;
|
|
610
611
|
let cleanupFolder = false;
|
|
611
612
|
const folder = (0, lib_folder_1.resolveLibFolder)(lib.folder, process.cwd());
|
|
@@ -649,7 +650,7 @@ async function loadLibraries(config) {
|
|
|
649
650
|
}
|
|
650
651
|
}
|
|
651
652
|
result.push({ name: libraryName, files });
|
|
652
|
-
console.log("\t" + files.length + " files added from lib");
|
|
653
|
+
console.log("\t" + files.length + " files added from lib, " + ((Date.now() - start) / 1000).toFixed(1) + " seconds");
|
|
653
654
|
}
|
|
654
655
|
finally {
|
|
655
656
|
if (cleanupFolder) {
|
|
@@ -28985,6 +28986,167 @@ exports.Procedural = Procedural;
|
|
|
28985
28986
|
|
|
28986
28987
|
/***/ },
|
|
28987
28988
|
|
|
28989
|
+
/***/ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_raise_message.js"
|
|
28990
|
+
/*!*******************************************************************************!*\
|
|
28991
|
+
!*** ./node_modules/@abaplint/core/build/src/abap/5_syntax/_raise_message.js ***!
|
|
28992
|
+
\*******************************************************************************/
|
|
28993
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
28994
|
+
|
|
28995
|
+
"use strict";
|
|
28996
|
+
|
|
28997
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
28998
|
+
if (k2 === undefined) k2 = k;
|
|
28999
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
29000
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
29001
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
29002
|
+
}
|
|
29003
|
+
Object.defineProperty(o, k2, desc);
|
|
29004
|
+
}) : (function(o, m, k, k2) {
|
|
29005
|
+
if (k2 === undefined) k2 = k;
|
|
29006
|
+
o[k2] = m[k];
|
|
29007
|
+
}));
|
|
29008
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29009
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
29010
|
+
}) : function(o, v) {
|
|
29011
|
+
o["default"] = v;
|
|
29012
|
+
});
|
|
29013
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
29014
|
+
var ownKeys = function(o) {
|
|
29015
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
29016
|
+
var ar = [];
|
|
29017
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29018
|
+
return ar;
|
|
29019
|
+
};
|
|
29020
|
+
return ownKeys(o);
|
|
29021
|
+
};
|
|
29022
|
+
return function (mod) {
|
|
29023
|
+
if (mod && mod.__esModule) return mod;
|
|
29024
|
+
var result = {};
|
|
29025
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
29026
|
+
__setModuleDefault(result, mod);
|
|
29027
|
+
return result;
|
|
29028
|
+
};
|
|
29029
|
+
})();
|
|
29030
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
29031
|
+
exports.RaiseMessage = void 0;
|
|
29032
|
+
const Expressions = __importStar(__webpack_require__(/*! ../2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js"));
|
|
29033
|
+
const nodes_1 = __webpack_require__(/*! ../nodes */ "./node_modules/@abaplint/core/build/src/abap/nodes/index.js");
|
|
29034
|
+
const _syntax_input_1 = __webpack_require__(/*! ./_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
|
|
29035
|
+
const T100_INTERFACES = new Set(["IF_T100_MESSAGE", "IF_T100_DYN_MSG"]);
|
|
29036
|
+
// the root exception classes, they implement IF_MESSAGE and IF_SERIALIZABLE_OBJECT, but not the T100 interfaces
|
|
29037
|
+
const ROOT_EXCEPTIONS = new Set(["CX_ROOT", "CX_STATIC_CHECK", "CX_DYNAMIC_CHECK", "CX_NO_CHECK"]);
|
|
29038
|
+
/** RAISE EXCEPTION TYPE cx MESSAGE ... and THROW cx( MESSAGE ... ) require the exception class to implement
|
|
29039
|
+
* IF_T100_MESSAGE or IF_T100_DYN_MSG, and with RAISE EXCEPTION the constructor parameter TEXTID cannot be
|
|
29040
|
+
* passed in addition to MESSAGE, see the ABAP keyword documentation for RAISE EXCEPTION, MESSAGE.
|
|
29041
|
+
* The interface check only reports when the full class hierarchy is known, void classes and void interfaces
|
|
29042
|
+
* in the hierarchy are skipped, except for the root exception classes. */
|
|
29043
|
+
class RaiseMessage {
|
|
29044
|
+
static checkRaise(node, input) {
|
|
29045
|
+
var _a, _b, _c;
|
|
29046
|
+
var _d;
|
|
29047
|
+
const classTok = (_a = node.findDirectExpression(Expressions.ClassName)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
|
|
29048
|
+
if (classTok === undefined || RaiseMessage.hasMessage(node) === false) {
|
|
29049
|
+
return;
|
|
29050
|
+
}
|
|
29051
|
+
for (const p of (_d = (_b = node.findDirectExpression(Expressions.ParameterListS)) === null || _b === void 0 ? void 0 : _b.findDirectExpressions(Expressions.ParameterS)) !== null && _d !== void 0 ? _d : []) {
|
|
29052
|
+
const name = (_c = p.findDirectExpression(Expressions.ParameterName)) === null || _c === void 0 ? void 0 : _c.getFirstToken();
|
|
29053
|
+
if ((name === null || name === void 0 ? void 0 : name.getStr().toUpperCase()) === "TEXTID") {
|
|
29054
|
+
const message = "RAISE EXCEPTION with MESSAGE, TEXTID cannot be passed";
|
|
29055
|
+
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, name, message));
|
|
29056
|
+
return;
|
|
29057
|
+
}
|
|
29058
|
+
}
|
|
29059
|
+
RaiseMessage.checkClass(classTok.getStr(), input, classTok);
|
|
29060
|
+
}
|
|
29061
|
+
static checkThrow(node, input) {
|
|
29062
|
+
var _a;
|
|
29063
|
+
const classTok = (_a = node.findDirectExpression(Expressions.ClassName)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
|
|
29064
|
+
if (classTok === undefined || node.findDirectExpression(Expressions.MessageSource) === undefined) {
|
|
29065
|
+
return;
|
|
29066
|
+
}
|
|
29067
|
+
RaiseMessage.checkClass(classTok.getStr(), input, classTok);
|
|
29068
|
+
}
|
|
29069
|
+
/** MESSAGE msg or MESSAGE ID, but not USING MESSAGE */
|
|
29070
|
+
static hasMessage(node) {
|
|
29071
|
+
const children = node.getChildren();
|
|
29072
|
+
for (let i = 0; i < children.length; i++) {
|
|
29073
|
+
const c = children[i];
|
|
29074
|
+
if (c instanceof nodes_1.TokenNode && c.getFirstToken().getStr().toUpperCase() === "MESSAGE") {
|
|
29075
|
+
const previous = children[i - 1];
|
|
29076
|
+
if (previous === undefined || previous.getFirstToken().getStr().toUpperCase() !== "USING") {
|
|
29077
|
+
return true;
|
|
29078
|
+
}
|
|
29079
|
+
}
|
|
29080
|
+
}
|
|
29081
|
+
return false;
|
|
29082
|
+
}
|
|
29083
|
+
static checkClass(className, input, classTok) {
|
|
29084
|
+
const def = input.scope.findClassDefinition(className);
|
|
29085
|
+
if (def === undefined) {
|
|
29086
|
+
return;
|
|
29087
|
+
}
|
|
29088
|
+
if (RaiseMessage.isT100(def, input.scope, new Set()) === false) {
|
|
29089
|
+
const message = "Exception class " + def.getName().toUpperCase() +
|
|
29090
|
+
" must implement IF_T100_MESSAGE or IF_T100_DYN_MSG to be raised with MESSAGE";
|
|
29091
|
+
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, classTok, message));
|
|
29092
|
+
}
|
|
29093
|
+
}
|
|
29094
|
+
/** true or false when known, undefined when the hierarchy contains void parts */
|
|
29095
|
+
static isT100(def, scope, visited) {
|
|
29096
|
+
var _a;
|
|
29097
|
+
const upper = def.getName().toUpperCase();
|
|
29098
|
+
if (visited.has(upper)) {
|
|
29099
|
+
return undefined;
|
|
29100
|
+
}
|
|
29101
|
+
visited.add(upper);
|
|
29102
|
+
let unknown = false;
|
|
29103
|
+
const interfaces = def.getImplementing().map(i => i.name.toUpperCase());
|
|
29104
|
+
const seen = new Set();
|
|
29105
|
+
while (interfaces.length > 0) {
|
|
29106
|
+
const name = interfaces.pop();
|
|
29107
|
+
if (seen.has(name)) {
|
|
29108
|
+
continue;
|
|
29109
|
+
}
|
|
29110
|
+
seen.add(name);
|
|
29111
|
+
if (T100_INTERFACES.has(name)) {
|
|
29112
|
+
return true;
|
|
29113
|
+
}
|
|
29114
|
+
const idef = scope.findInterfaceDefinition(name);
|
|
29115
|
+
if (idef === undefined) {
|
|
29116
|
+
unknown = true;
|
|
29117
|
+
}
|
|
29118
|
+
else {
|
|
29119
|
+
interfaces.push(...idef.getImplementing().map(i => i.name.toUpperCase()));
|
|
29120
|
+
}
|
|
29121
|
+
}
|
|
29122
|
+
const superName = (_a = def.getSuperClass()) === null || _a === void 0 ? void 0 : _a.toUpperCase();
|
|
29123
|
+
if (superName !== undefined) {
|
|
29124
|
+
const superDef = scope.findClassDefinition(superName);
|
|
29125
|
+
if (superDef !== undefined) {
|
|
29126
|
+
const res = RaiseMessage.isT100(superDef, scope, visited);
|
|
29127
|
+
if (res === true) {
|
|
29128
|
+
return true;
|
|
29129
|
+
}
|
|
29130
|
+
else if (res === undefined) {
|
|
29131
|
+
unknown = true;
|
|
29132
|
+
}
|
|
29133
|
+
}
|
|
29134
|
+
else if (ROOT_EXCEPTIONS.has(superName) === false) {
|
|
29135
|
+
unknown = true;
|
|
29136
|
+
}
|
|
29137
|
+
}
|
|
29138
|
+
else if (ROOT_EXCEPTIONS.has(upper) === false) {
|
|
29139
|
+
// not an exception class, reported elsewhere or not at all
|
|
29140
|
+
unknown = true;
|
|
29141
|
+
}
|
|
29142
|
+
return unknown ? undefined : false;
|
|
29143
|
+
}
|
|
29144
|
+
}
|
|
29145
|
+
exports.RaiseMessage = RaiseMessage;
|
|
29146
|
+
//# sourceMappingURL=_raise_message.js.map
|
|
29147
|
+
|
|
29148
|
+
/***/ },
|
|
29149
|
+
|
|
28988
29150
|
/***/ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js"
|
|
28989
29151
|
/*!***************************************************************************!*\
|
|
28990
29152
|
!*** ./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js ***!
|
|
@@ -29163,16 +29325,19 @@ class SortedKeyWrite {
|
|
|
29163
29325
|
if (this.procedure === undefined) {
|
|
29164
29326
|
return;
|
|
29165
29327
|
}
|
|
29166
|
-
// any assignment of a field symbol or reference ends its binding
|
|
29167
|
-
|
|
29168
|
-
|
|
29169
|
-
|
|
29170
|
-
|
|
29171
|
-
|
|
29172
|
-
|
|
29173
|
-
|
|
29174
|
-
|
|
29175
|
-
|
|
29328
|
+
// any assignment of a field symbol or reference ends its binding,
|
|
29329
|
+
// skipped when nothing is bound, this runs for every statement
|
|
29330
|
+
if (this.bindings.size > 0) {
|
|
29331
|
+
for (const fs of node.findAllExpressions(Expressions.FSTarget)) {
|
|
29332
|
+
this.unbind(fs.findFirstExpression(Expressions.TargetFieldSymbol), input.scope);
|
|
29333
|
+
}
|
|
29334
|
+
if (node.get() instanceof Statements.Unassign) {
|
|
29335
|
+
this.unbind(node.findDirectExpression(Expressions.TargetFieldSymbol), input.scope);
|
|
29336
|
+
}
|
|
29337
|
+
for (const target of node.findAllExpressions(Expressions.Target)) {
|
|
29338
|
+
if (target.getChildren().length === 1) {
|
|
29339
|
+
this.unbind(target.findDirectExpression(Expressions.TargetField), input.scope);
|
|
29340
|
+
}
|
|
29176
29341
|
}
|
|
29177
29342
|
}
|
|
29178
29343
|
const s = node.get();
|
|
@@ -31764,7 +31929,19 @@ const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modu
|
|
|
31764
31929
|
// a syntax error. Other types, a dynamic offset or length and "*" (undefined) are left alone, as is
|
|
31765
31930
|
// length 0. The offset is applied first, so the length is compared to what remains after the offset.
|
|
31766
31931
|
// A substring of a date, time or numeric text field has type n; its bounds are not checked.
|
|
31932
|
+
// An offset or length on a numeric field (i, int8, p, f, decfloat) is a syntax error, whatever its value,
|
|
31933
|
+
// except a length without offset covering the full packed field, eg. "lv_p(5)" for "lv_p(5) TYPE p".
|
|
31767
31934
|
function substringType(context, offset, length, node, input) {
|
|
31935
|
+
const numericName = numericTypeName(context);
|
|
31936
|
+
if (context instanceof basic_1.PackedType && offset === undefined && length === context.getLength()) {
|
|
31937
|
+
// the offset is checked in a separate call before the length, so this is a length without offset
|
|
31938
|
+
return context;
|
|
31939
|
+
}
|
|
31940
|
+
else if (numericName !== undefined) {
|
|
31941
|
+
const message = `Offset or length specification not possible on a field of numeric type "${numericName}"`;
|
|
31942
|
+
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
31943
|
+
return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
|
|
31944
|
+
}
|
|
31768
31945
|
if (context instanceof basic_1.DateType || context instanceof basic_1.TimeType || context instanceof basic_1.NumericType) {
|
|
31769
31946
|
return numericSubstringType(context, offset, length);
|
|
31770
31947
|
}
|
|
@@ -31790,6 +31967,30 @@ function substringType(context, offset, length, node, input) {
|
|
|
31790
31967
|
}
|
|
31791
31968
|
return context;
|
|
31792
31969
|
}
|
|
31970
|
+
function numericTypeName(context) {
|
|
31971
|
+
if (context instanceof basic_1.IntegerType) {
|
|
31972
|
+
return "I";
|
|
31973
|
+
}
|
|
31974
|
+
else if (context instanceof basic_1.Integer8Type) {
|
|
31975
|
+
return "INT8";
|
|
31976
|
+
}
|
|
31977
|
+
else if (context instanceof basic_1.PackedType) {
|
|
31978
|
+
return "P";
|
|
31979
|
+
}
|
|
31980
|
+
else if (context instanceof basic_1.FloatType || context instanceof basic_1.FloatingPointType) {
|
|
31981
|
+
return "F";
|
|
31982
|
+
}
|
|
31983
|
+
else if (context instanceof basic_1.DecFloat16Type) {
|
|
31984
|
+
return "DECFLOAT16";
|
|
31985
|
+
}
|
|
31986
|
+
else if (context instanceof basic_1.DecFloat34Type) {
|
|
31987
|
+
return "DECFLOAT34";
|
|
31988
|
+
}
|
|
31989
|
+
else if (context instanceof basic_1.DecFloatType) {
|
|
31990
|
+
return "DECFLOAT";
|
|
31991
|
+
}
|
|
31992
|
+
return undefined;
|
|
31993
|
+
}
|
|
31793
31994
|
function numericSubstringType(context, offset, length) {
|
|
31794
31995
|
const hasOffset = offset !== undefined && offset > 0;
|
|
31795
31996
|
const hasLength = length !== undefined && length > 0;
|
|
@@ -32929,6 +33130,7 @@ const Expressions = __importStar(__webpack_require__(/*! ../../2_statements/expr
|
|
|
32929
33130
|
const source_1 = __webpack_require__(/*! ./source */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/source.js");
|
|
32930
33131
|
const let_1 = __webpack_require__(/*! ./let */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/let.js");
|
|
32931
33132
|
const cond_1 = __webpack_require__(/*! ./cond */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/cond.js");
|
|
33133
|
+
const _raise_message_1 = __webpack_require__(/*! ../_raise_message */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_raise_message.js");
|
|
32932
33134
|
class CondBody {
|
|
32933
33135
|
static runSyntax(node, input, targetType) {
|
|
32934
33136
|
if (node === undefined) {
|
|
@@ -32939,6 +33141,9 @@ class CondBody {
|
|
|
32939
33141
|
if (l) {
|
|
32940
33142
|
scoped = let_1.Let.runSyntax(l, input);
|
|
32941
33143
|
}
|
|
33144
|
+
for (const t of node.findDirectExpressions(Expressions.Throw)) {
|
|
33145
|
+
_raise_message_1.RaiseMessage.checkThrow(t, input);
|
|
33146
|
+
}
|
|
32942
33147
|
for (const s of node.findDirectExpressions(Expressions.Cond)) {
|
|
32943
33148
|
cond_1.Cond.runSyntax(s, input);
|
|
32944
33149
|
}
|
|
@@ -37579,8 +37784,9 @@ class Source {
|
|
|
37579
37784
|
/** The calculation type of an arithmetic expression is the most general of the
|
|
37580
37785
|
* operand types. An operand of type c, n, d, t or string is converted into it and
|
|
37581
37786
|
* never becomes the result: "lv_f * '0.25'" is a float, not a character field of
|
|
37582
|
-
* length four.
|
|
37583
|
-
*
|
|
37787
|
+
* length four. Date and time operands count as numbers of days and seconds, type i:
|
|
37788
|
+
* "lv_end - lv_start" is a number of days, not a date. Returns undefined when neither
|
|
37789
|
+
* operand is numeric, leaving the decision to the caller. */
|
|
37584
37790
|
static calculationType(left, right) {
|
|
37585
37791
|
if (left === undefined || right === undefined) {
|
|
37586
37792
|
return undefined;
|
|
@@ -37592,12 +37798,27 @@ class Source {
|
|
|
37592
37798
|
else if (right instanceof basic_1.VoidType || right instanceof unknown_type_1.UnknownType) {
|
|
37593
37799
|
return right;
|
|
37594
37800
|
}
|
|
37801
|
+
const dateOrTime = left instanceof basic_1.DateType || left instanceof basic_1.TimeType
|
|
37802
|
+
|| right instanceof basic_1.DateType || right instanceof basic_1.TimeType;
|
|
37803
|
+
if (left instanceof basic_1.DateType || left instanceof basic_1.TimeType) {
|
|
37804
|
+
left = basic_1.IntegerType.get();
|
|
37805
|
+
}
|
|
37806
|
+
if (right instanceof basic_1.DateType || right instanceof basic_1.TimeType) {
|
|
37807
|
+
right = basic_1.IntegerType.get();
|
|
37808
|
+
}
|
|
37595
37809
|
const leftRank = this.numericRank(left);
|
|
37596
37810
|
const rightRank = this.numericRank(right);
|
|
37597
37811
|
if (leftRank === undefined && rightRank === undefined) {
|
|
37598
37812
|
return undefined;
|
|
37599
37813
|
}
|
|
37600
|
-
|
|
37814
|
+
// a character-like operand next to a date or time counts as p: "lv_date + '5'" is p
|
|
37815
|
+
if (leftRank === undefined && this.isCharacterLike(left) && dateOrTime) {
|
|
37816
|
+
return rightRank >= 3 ? right : new basic_1.PackedType(8, 0);
|
|
37817
|
+
}
|
|
37818
|
+
else if (rightRank === undefined && this.isCharacterLike(right) && dateOrTime) {
|
|
37819
|
+
return leftRank >= 3 ? left : new basic_1.PackedType(8, 0);
|
|
37820
|
+
}
|
|
37821
|
+
if (rightRank === undefined) {
|
|
37601
37822
|
return left;
|
|
37602
37823
|
}
|
|
37603
37824
|
else if (leftRank === undefined) {
|
|
@@ -37605,6 +37826,9 @@ class Source {
|
|
|
37605
37826
|
}
|
|
37606
37827
|
return leftRank >= rightRank ? left : right;
|
|
37607
37828
|
}
|
|
37829
|
+
static isCharacterLike(type) {
|
|
37830
|
+
return type instanceof basic_1.CharacterType || type instanceof basic_1.NumericType || type instanceof basic_1.StringType;
|
|
37831
|
+
}
|
|
37608
37832
|
static numericRank(type) {
|
|
37609
37833
|
if (type instanceof basic_1.DecFloat34Type) {
|
|
37610
37834
|
return 6;
|
|
@@ -38512,6 +38736,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
38512
38736
|
exports.SwitchBody = void 0;
|
|
38513
38737
|
const Expressions = __importStar(__webpack_require__(/*! ../../2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js"));
|
|
38514
38738
|
const source_1 = __webpack_require__(/*! ./source */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/source.js");
|
|
38739
|
+
const _raise_message_1 = __webpack_require__(/*! ../_raise_message */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_raise_message.js");
|
|
38515
38740
|
const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
|
|
38516
38741
|
const basic_1 = __webpack_require__(/*! ../../types/basic */ "./node_modules/@abaplint/core/build/src/abap/types/basic/index.js");
|
|
38517
38742
|
class SwitchBody {
|
|
@@ -38519,6 +38744,9 @@ class SwitchBody {
|
|
|
38519
38744
|
if (node === undefined) {
|
|
38520
38745
|
return;
|
|
38521
38746
|
}
|
|
38747
|
+
for (const t of node.findDirectExpressions(Expressions.Throw)) {
|
|
38748
|
+
_raise_message_1.RaiseMessage.checkThrow(t, input);
|
|
38749
|
+
}
|
|
38522
38750
|
const thenSource = node.findExpressionAfterToken("THEN");
|
|
38523
38751
|
if (!((thenSource === null || thenSource === void 0 ? void 0 : thenSource.get()) instanceof Expressions.Source)) {
|
|
38524
38752
|
const message = "SwitchBody, unexpected";
|
|
@@ -45460,6 +45688,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
45460
45688
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
45461
45689
|
exports.Loop = void 0;
|
|
45462
45690
|
const Expressions = __importStar(__webpack_require__(/*! ../../2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js"));
|
|
45691
|
+
const nodes_1 = __webpack_require__(/*! ../../nodes */ "./node_modules/@abaplint/core/build/src/abap/nodes/index.js");
|
|
45463
45692
|
const basic_1 = __webpack_require__(/*! ../../types/basic */ "./node_modules/@abaplint/core/build/src/abap/types/basic/index.js");
|
|
45464
45693
|
const target_1 = __webpack_require__(/*! ../expressions/target */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/target.js");
|
|
45465
45694
|
const source_1 = __webpack_require__(/*! ../expressions/source */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/source.js");
|
|
@@ -45571,6 +45800,17 @@ class Loop {
|
|
|
45571
45800
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
45572
45801
|
return;
|
|
45573
45802
|
}
|
|
45803
|
+
if (key.type === basic_1.TableAccessType.sorted && key.keyFields.length > 0) {
|
|
45804
|
+
// the first component of a sorted secondary key must be compared with = or IS INITIAL
|
|
45805
|
+
// in a part of the condition joined by AND, otherwise the WHERE cannot be optimized
|
|
45806
|
+
const first = key.keyFields[0].toUpperCase();
|
|
45807
|
+
if (this.hasKeyCompare(cond, first) === false) {
|
|
45808
|
+
const message = "Loop, WHERE cannot be optimized for secondary key " + name +
|
|
45809
|
+
", key component " + first + " needs a comparison with = or IS INITIAL joined by AND";
|
|
45810
|
+
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
45811
|
+
return;
|
|
45812
|
+
}
|
|
45813
|
+
}
|
|
45574
45814
|
if (!(0, version_1.releaseAtLeast)(input.scope.getRelease(), version_1.Release.v740sp02)) {
|
|
45575
45815
|
const compares = cond.findAllExpressionsRecursive(Expressions.ComponentCompare).map(c => c.concatTokens().toUpperCase());
|
|
45576
45816
|
for (const keyField of key.keyFields) {
|
|
@@ -45611,6 +45851,31 @@ class Loop {
|
|
|
45611
45851
|
loop_group_by_1.LoopGroupBy.runSyntax(group, input);
|
|
45612
45852
|
}
|
|
45613
45853
|
}
|
|
45854
|
+
// true if a conjunct reachable through AND only, ie. not under OR or NOT, compares the component with = or IS INITIAL
|
|
45855
|
+
hasKeyCompare(cond, component) {
|
|
45856
|
+
if (cond.findDirectTokenByText("OR") !== undefined) {
|
|
45857
|
+
return false;
|
|
45858
|
+
}
|
|
45859
|
+
for (const child of cond.getChildren()) {
|
|
45860
|
+
if (child.get() instanceof Expressions.ComponentCompare && child instanceof nodes_1.ExpressionNode) {
|
|
45861
|
+
const concat = child.concatTokens().toUpperCase().replace(/\s+/g, " ");
|
|
45862
|
+
if (concat.startsWith(component + " = ")
|
|
45863
|
+
|| concat.startsWith(component + " EQ ")
|
|
45864
|
+
|| concat === component + " IS INITIAL") {
|
|
45865
|
+
return true;
|
|
45866
|
+
}
|
|
45867
|
+
}
|
|
45868
|
+
else if (child.get() instanceof Expressions.ComponentCondSub
|
|
45869
|
+
&& child instanceof nodes_1.ExpressionNode
|
|
45870
|
+
&& child.findDirectTokenByText("NOT") === undefined) {
|
|
45871
|
+
const sub = child.findDirectExpression(Expressions.ComponentCond);
|
|
45872
|
+
if (sub !== undefined && this.hasKeyCompare(sub, component)) {
|
|
45873
|
+
return true;
|
|
45874
|
+
}
|
|
45875
|
+
}
|
|
45876
|
+
}
|
|
45877
|
+
return false;
|
|
45878
|
+
}
|
|
45614
45879
|
}
|
|
45615
45880
|
exports.Loop = Loop;
|
|
45616
45881
|
//# sourceMappingURL=loop.js.map
|
|
@@ -46978,6 +47243,7 @@ const raise_with_1 = __webpack_require__(/*! ../expressions/raise_with */ "./nod
|
|
|
46978
47243
|
const _object_oriented_1 = __webpack_require__(/*! ../_object_oriented */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_object_oriented.js");
|
|
46979
47244
|
const method_parameters_1 = __webpack_require__(/*! ../expressions/method_parameters */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/method_parameters.js");
|
|
46980
47245
|
const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
|
|
47246
|
+
const _raise_message_1 = __webpack_require__(/*! ../_raise_message */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_raise_message.js");
|
|
46981
47247
|
class Raise {
|
|
46982
47248
|
runSyntax(node, input) {
|
|
46983
47249
|
// todo
|
|
@@ -47037,6 +47303,7 @@ class Raise {
|
|
|
47037
47303
|
if (param) {
|
|
47038
47304
|
new method_parameters_1.MethodParameters().checkExporting(param, input, method, true);
|
|
47039
47305
|
}
|
|
47306
|
+
_raise_message_1.RaiseMessage.checkRaise(node, input);
|
|
47040
47307
|
for (const s of node.findDirectExpressions(Expressions.RaiseWith)) {
|
|
47041
47308
|
raise_with_1.RaiseWith.runSyntax(s, input);
|
|
47042
47309
|
}
|
|
@@ -51024,6 +51291,107 @@ exports.Statics = Statics;
|
|
|
51024
51291
|
|
|
51025
51292
|
/***/ },
|
|
51026
51293
|
|
|
51294
|
+
/***/ "./node_modules/@abaplint/core/build/src/abap/5_syntax/structures/try.js"
|
|
51295
|
+
/*!*******************************************************************************!*\
|
|
51296
|
+
!*** ./node_modules/@abaplint/core/build/src/abap/5_syntax/structures/try.js ***!
|
|
51297
|
+
\*******************************************************************************/
|
|
51298
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
51299
|
+
|
|
51300
|
+
"use strict";
|
|
51301
|
+
|
|
51302
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
51303
|
+
if (k2 === undefined) k2 = k;
|
|
51304
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
51305
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
51306
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
51307
|
+
}
|
|
51308
|
+
Object.defineProperty(o, k2, desc);
|
|
51309
|
+
}) : (function(o, m, k, k2) {
|
|
51310
|
+
if (k2 === undefined) k2 = k;
|
|
51311
|
+
o[k2] = m[k];
|
|
51312
|
+
}));
|
|
51313
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
51314
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
51315
|
+
}) : function(o, v) {
|
|
51316
|
+
o["default"] = v;
|
|
51317
|
+
});
|
|
51318
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
51319
|
+
var ownKeys = function(o) {
|
|
51320
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
51321
|
+
var ar = [];
|
|
51322
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
51323
|
+
return ar;
|
|
51324
|
+
};
|
|
51325
|
+
return ownKeys(o);
|
|
51326
|
+
};
|
|
51327
|
+
return function (mod) {
|
|
51328
|
+
if (mod && mod.__esModule) return mod;
|
|
51329
|
+
var result = {};
|
|
51330
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
51331
|
+
__setModuleDefault(result, mod);
|
|
51332
|
+
return result;
|
|
51333
|
+
};
|
|
51334
|
+
})();
|
|
51335
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
51336
|
+
exports.Try = void 0;
|
|
51337
|
+
const Expressions = __importStar(__webpack_require__(/*! ../../2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js"));
|
|
51338
|
+
const Statements = __importStar(__webpack_require__(/*! ../../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js"));
|
|
51339
|
+
const Structures = __importStar(__webpack_require__(/*! ../../3_structures/structures */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/index.js"));
|
|
51340
|
+
const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
|
|
51341
|
+
// "special exceptions must be caught before general exceptions", a CATCH of a class that inherits
|
|
51342
|
+
// from a class named in an earlier CATCH of the same TRY can never be reached, this is a syntax error
|
|
51343
|
+
// only reported when the lineage of the later class is known up to the earlier class, void classes are skipped
|
|
51344
|
+
class Try {
|
|
51345
|
+
static runSyntax(node, input) {
|
|
51346
|
+
const caught = new Set();
|
|
51347
|
+
for (const catchStructure of node.findDirectStructures(Structures.Catch)) {
|
|
51348
|
+
const statement = catchStructure.findDirectStatement(Statements.Catch);
|
|
51349
|
+
if (statement === undefined) {
|
|
51350
|
+
continue;
|
|
51351
|
+
}
|
|
51352
|
+
const names = [];
|
|
51353
|
+
for (const c of statement.findDirectExpressions(Expressions.ClassName)) {
|
|
51354
|
+
const token = c.getFirstToken();
|
|
51355
|
+
const className = token.getStr().toUpperCase();
|
|
51356
|
+
names.push(className);
|
|
51357
|
+
if (caught.size === 0) {
|
|
51358
|
+
continue;
|
|
51359
|
+
}
|
|
51360
|
+
const superclass = this.findCaughtSuperclass(className, caught, input);
|
|
51361
|
+
if (superclass !== undefined) {
|
|
51362
|
+
const message = `CATCH of ${className} after the CATCH of its superclass ${superclass}`;
|
|
51363
|
+
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, token, message));
|
|
51364
|
+
return;
|
|
51365
|
+
}
|
|
51366
|
+
}
|
|
51367
|
+
for (const name of names) {
|
|
51368
|
+
caught.add(name);
|
|
51369
|
+
}
|
|
51370
|
+
}
|
|
51371
|
+
}
|
|
51372
|
+
static findCaughtSuperclass(className, caught, input) {
|
|
51373
|
+
var _a;
|
|
51374
|
+
const visited = new Set([className]);
|
|
51375
|
+
let current = input.scope.findClassDefinition(className);
|
|
51376
|
+
while (current !== undefined) {
|
|
51377
|
+
const superclass = (_a = current.getSuperClass()) === null || _a === void 0 ? void 0 : _a.toUpperCase();
|
|
51378
|
+
if (superclass === undefined || visited.has(superclass)) {
|
|
51379
|
+
return undefined;
|
|
51380
|
+
}
|
|
51381
|
+
else if (caught.has(superclass)) {
|
|
51382
|
+
return superclass;
|
|
51383
|
+
}
|
|
51384
|
+
visited.add(superclass);
|
|
51385
|
+
current = input.scope.findClassDefinition(superclass);
|
|
51386
|
+
}
|
|
51387
|
+
return undefined;
|
|
51388
|
+
}
|
|
51389
|
+
}
|
|
51390
|
+
exports.Try = Try;
|
|
51391
|
+
//# sourceMappingURL=try.js.map
|
|
51392
|
+
|
|
51393
|
+
/***/ },
|
|
51394
|
+
|
|
51027
51395
|
/***/ "./node_modules/@abaplint/core/build/src/abap/5_syntax/structures/type_enum.js"
|
|
51028
51396
|
/*!*************************************************************************************!*\
|
|
51029
51397
|
!*** ./node_modules/@abaplint/core/build/src/abap/5_syntax/structures/type_enum.js ***!
|
|
@@ -51431,6 +51799,7 @@ const types_1 = __webpack_require__(/*! ./structures/types */ "./node_modules/@a
|
|
|
51431
51799
|
const statics_1 = __webpack_require__(/*! ./structures/statics */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/structures/statics.js");
|
|
51432
51800
|
const constants_1 = __webpack_require__(/*! ./structures/constants */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/structures/constants.js");
|
|
51433
51801
|
const cleanup_1 = __webpack_require__(/*! ./structures/cleanup */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/structures/cleanup.js");
|
|
51802
|
+
const try_1 = __webpack_require__(/*! ./structures/try */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/structures/try.js");
|
|
51434
51803
|
const class_definition_1 = __webpack_require__(/*! ../types/class_definition */ "./node_modules/@abaplint/core/build/src/abap/types/class_definition.js");
|
|
51435
51804
|
const interface_definition_1 = __webpack_require__(/*! ../types/interface_definition */ "./node_modules/@abaplint/core/build/src/abap/types/interface_definition.js");
|
|
51436
51805
|
const delete_memory_1 = __webpack_require__(/*! ./statements/delete_memory */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/delete_memory.js");
|
|
@@ -51916,6 +52285,9 @@ class SyntaxLogic {
|
|
|
51916
52285
|
else if (stru instanceof Structures.Cleanup) {
|
|
51917
52286
|
cleanup_1.Cleanup.runSyntax(node, input);
|
|
51918
52287
|
}
|
|
52288
|
+
else if (stru instanceof Structures.Try) {
|
|
52289
|
+
try_1.Try.runSyntax(node, input);
|
|
52290
|
+
}
|
|
51919
52291
|
return false;
|
|
51920
52292
|
}
|
|
51921
52293
|
updateScopeStatement(node) {
|
|
@@ -74376,7 +74748,7 @@ class Registry {
|
|
|
74376
74748
|
}
|
|
74377
74749
|
static abaplintVersion() {
|
|
74378
74750
|
// magic, see build script "version.js"
|
|
74379
|
-
return "2.120.
|
|
74751
|
+
return "2.120.103";
|
|
74380
74752
|
}
|
|
74381
74753
|
getDDICReferences() {
|
|
74382
74754
|
return this.ddicReferences;
|
|
@@ -92004,13 +92376,18 @@ class FullyTypeConstants extends _abap_rule_1.ABAPRule {
|
|
|
92004
92376
|
if ((stat.get() instanceof Statements.Constant
|
|
92005
92377
|
|| (this.conf.checkData === true && stat.get() instanceof Statements.Data))
|
|
92006
92378
|
&& !this.isTyped(stat)) {
|
|
92379
|
+
if (stat.get() instanceof Statements.Data && stat.findDirectExpression(expressions_1.DataDefinition) === undefined) {
|
|
92380
|
+
// unnamed field, eg. "DATA (10)." inside DATA BEGIN OF, cannot be typed
|
|
92381
|
+
continue;
|
|
92382
|
+
}
|
|
92007
92383
|
const type = stat.get() instanceof Statements.Constant ? "constant definition" : "data definition";
|
|
92008
92384
|
let token = (_a = stat.findFirstExpression(expressions_1.NamespaceSimpleName)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
|
|
92009
92385
|
if (token === undefined) {
|
|
92010
92386
|
token = (_b = stat.findFirstExpression(expressions_1.DefinitionName)) === null || _b === void 0 ? void 0 : _b.getFirstToken();
|
|
92011
92387
|
}
|
|
92012
92388
|
if (token === undefined) {
|
|
92013
|
-
|
|
92389
|
+
const start = stat.getFirstToken().getStart();
|
|
92390
|
+
throw new Error(`fully type constants: unexpected node, ${file.getFilename()}, row ${start.getRow()}, col ${start.getCol()}, statement "${stat.concatTokens()}"`);
|
|
92014
92391
|
}
|
|
92015
92392
|
issues.push(issue_1.Issue.atToken(file, token, this.getDescription(type), this.getMetadata().key, this.conf.severity));
|
|
92016
92393
|
}
|
|
@@ -118803,17 +119180,22 @@ class CondBodyTranspiler {
|
|
|
118803
119180
|
else {
|
|
118804
119181
|
throw new Error("CondBodyTranspiler, Expected Cond, todo, " + when.get().constructor.name);
|
|
118805
119182
|
}
|
|
118806
|
-
let value = "";
|
|
118807
119183
|
if (then.get() instanceof core_1.Expressions.Source) {
|
|
118808
|
-
value = new source_1.SourceTranspiler().transpile(then, traversal).getCode();
|
|
119184
|
+
const value = new source_1.SourceTranspiler().transpile(then, traversal).getCode();
|
|
119185
|
+
ret.appendString(`if (${condition}) { return ${value}; }\n`);
|
|
119186
|
+
}
|
|
119187
|
+
else if (then.get() instanceof core_1.Expressions.Throw) {
|
|
119188
|
+
ret.appendString(`if (${condition}) {\n${traversal.traverse(then).getCode()}\n}\n`);
|
|
118809
119189
|
}
|
|
118810
119190
|
else {
|
|
118811
119191
|
throw new Error("CondBodyTranspiler, Expected Source, todo, " + then.get().constructor.name);
|
|
118812
119192
|
}
|
|
118813
|
-
ret.appendString(`if (${condition}) { return ${value}; }\n`);
|
|
118814
119193
|
}
|
|
118815
119194
|
const els = body.findExpressionAfterToken("ELSE");
|
|
118816
|
-
if (els) {
|
|
119195
|
+
if (els?.get() instanceof core_1.Expressions.Throw) {
|
|
119196
|
+
ret.appendString(traversal.traverse(els).getCode() + "\n");
|
|
119197
|
+
}
|
|
119198
|
+
else if (els) {
|
|
118817
119199
|
if (!(els.get() instanceof core_1.Expressions.Source)) {
|
|
118818
119200
|
throw new Error("CondBodyTranspiler, Expected Source, todo, " + els.get().constructor.name);
|
|
118819
119201
|
}
|
|
@@ -120014,6 +120396,7 @@ __exportStar(__webpack_require__(/*! ./table_expression */ "./node_modules/@abap
|
|
|
120014
120396
|
__exportStar(__webpack_require__(/*! ./target_field_symbol */ "./node_modules/@abaplint/transpiler/build/src/expressions/target_field_symbol.js"), exports);
|
|
120015
120397
|
__exportStar(__webpack_require__(/*! ./target_field */ "./node_modules/@abaplint/transpiler/build/src/expressions/target_field.js"), exports);
|
|
120016
120398
|
__exportStar(__webpack_require__(/*! ./target */ "./node_modules/@abaplint/transpiler/build/src/expressions/target.js"), exports);
|
|
120399
|
+
__exportStar(__webpack_require__(/*! ./throw */ "./node_modules/@abaplint/transpiler/build/src/expressions/throw.js"), exports);
|
|
120017
120400
|
__exportStar(__webpack_require__(/*! ./type_name_or_infer */ "./node_modules/@abaplint/transpiler/build/src/expressions/type_name_or_infer.js"), exports);
|
|
120018
120401
|
//# sourceMappingURL=index.js.map
|
|
120019
120402
|
|
|
@@ -120765,7 +121148,7 @@ class NewObjectTranspiler {
|
|
|
120765
121148
|
// single default parameter
|
|
120766
121149
|
const scope = traversal.findCurrentScopeByToken(typeNameOrInfer.getFirstToken());
|
|
120767
121150
|
const cdef = traversal.findClassDefinition(type.getIdentifierName(), scope);
|
|
120768
|
-
const constr =
|
|
121151
|
+
const constr = NewObjectTranspiler.findConstructor(cdef, scope);
|
|
120769
121152
|
const pname = constr?.getParameters().getDefaultImporting()?.toLowerCase();
|
|
120770
121153
|
para = `{${pname}: ${traversal.traverse(node.getChildren()[3]).getCode()}}`;
|
|
120771
121154
|
}
|
|
@@ -120818,7 +121201,7 @@ class NewObjectTranspiler {
|
|
|
120818
121201
|
}
|
|
120819
121202
|
return ret;
|
|
120820
121203
|
}
|
|
120821
|
-
findConstructor(cdef, spag) {
|
|
121204
|
+
static findConstructor(cdef, spag) {
|
|
120822
121205
|
let def = cdef;
|
|
120823
121206
|
while (def !== undefined) {
|
|
120824
121207
|
const method = def?.getMethodDefinitions().getByName("CONSTRUCTOR");
|
|
@@ -122297,6 +122680,13 @@ const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_
|
|
|
122297
122680
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
122298
122681
|
const sql_field_name_1 = __webpack_require__(/*! ./sql_field_name */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_field_name.js");
|
|
122299
122682
|
class SQLFieldAndValueTranspiler {
|
|
122683
|
+
columns;
|
|
122684
|
+
statementStart;
|
|
122685
|
+
/** columns: the columns of the updated table, a plain name among them that is no data object is that column */
|
|
122686
|
+
constructor(columns, statementStart) {
|
|
122687
|
+
this.columns = columns;
|
|
122688
|
+
this.statementStart = statementStart;
|
|
122689
|
+
}
|
|
122300
122690
|
transpile(node, traversal) {
|
|
122301
122691
|
const chunk = new chunk_1.Chunk();
|
|
122302
122692
|
chunk.appendString("\"");
|
|
@@ -122308,6 +122698,10 @@ class SQLFieldAndValueTranspiler {
|
|
|
122308
122698
|
else if (n.get() instanceof abaplint.Expressions.SQLFieldName) {
|
|
122309
122699
|
chunk.appendString(new sql_field_name_1.SQLFieldNameTranspiler().transpile(n, traversal).getCode());
|
|
122310
122700
|
}
|
|
122701
|
+
else if (n.get() instanceof abaplint.Expressions.SQLSource && this.isColumn(n, traversal)) {
|
|
122702
|
+
// SET f = g, where g is a column of the table: the column, as the database reads it
|
|
122703
|
+
chunk.appendString(new sql_field_name_1.SQLFieldNameTranspiler().transpile(n, traversal).getCode().toLowerCase());
|
|
122704
|
+
}
|
|
122311
122705
|
else if (n.get() instanceof abaplint.Expressions.SQLSource) {
|
|
122312
122706
|
const source = traversal.traverse(n);
|
|
122313
122707
|
// todo: value conversion? abap vs db, traversal.isSQLConversion
|
|
@@ -122325,6 +122719,15 @@ class SQLFieldAndValueTranspiler {
|
|
|
122325
122719
|
chunk.appendString("\"");
|
|
122326
122720
|
return chunk;
|
|
122327
122721
|
}
|
|
122722
|
+
isColumn(node, traversal) {
|
|
122723
|
+
const plain = node.concatTokens();
|
|
122724
|
+
if (this.columns === undefined || /^[A-Za-z_][A-Za-z0-9_]*$/.test(plain) === false || !this.columns.has(plain.toLowerCase())) {
|
|
122725
|
+
return false;
|
|
122726
|
+
}
|
|
122727
|
+
const variable = traversal.findCurrentScopeByToken(node.getFirstToken())?.findVariable(plain);
|
|
122728
|
+
// abaplint declares an unknown name in SET at the UPDATE statement itself, that is no data object either
|
|
122729
|
+
return variable === undefined || (this.statementStart !== undefined && variable.getStart().equals(this.statementStart));
|
|
122730
|
+
}
|
|
122328
122731
|
}
|
|
122329
122732
|
exports.SQLFieldAndValueTranspiler = SQLFieldAndValueTranspiler;
|
|
122330
122733
|
//# sourceMappingURL=sql_field_and_value.js.map
|
|
@@ -123402,7 +123805,10 @@ class SwitchBodyTranspiler {
|
|
|
123402
123805
|
for (const wto of whenThenOr) {
|
|
123403
123806
|
let thenValue = "";
|
|
123404
123807
|
if (wto.then?.get() instanceof core_1.Expressions.Source) {
|
|
123405
|
-
thenValue = new source_1.SourceTranspiler().transpile(wto.then, traversal).getCode();
|
|
123808
|
+
thenValue = "return " + new source_1.SourceTranspiler().transpile(wto.then, traversal).getCode() + ";";
|
|
123809
|
+
}
|
|
123810
|
+
else if (wto.then?.get() instanceof core_1.Expressions.Throw) {
|
|
123811
|
+
thenValue = "\n" + traversal.traverse(wto.then).getCode() + "\n";
|
|
123406
123812
|
}
|
|
123407
123813
|
else {
|
|
123408
123814
|
throw new Error("SwitchBodyTranspiler, Expected Source1, todo, " + wto.then?.get().constructor.name);
|
|
@@ -123416,10 +123822,13 @@ class SwitchBodyTranspiler {
|
|
|
123416
123822
|
else {
|
|
123417
123823
|
throw new Error("SwitchBodyTranspiler, Expected Source2, todo, " + thenOr.get().constructor.name);
|
|
123418
123824
|
}
|
|
123419
|
-
ret.appendString(`if (abap.compare.eq(${source.getCode()}, ${condition})) {
|
|
123825
|
+
ret.appendString(`if (abap.compare.eq(${source.getCode()}, ${condition})) { ${thenValue} }\n`);
|
|
123420
123826
|
}
|
|
123421
123827
|
}
|
|
123422
|
-
if (elseExpression) {
|
|
123828
|
+
if (elseExpression?.get() instanceof core_1.Expressions.Throw) {
|
|
123829
|
+
ret.appendString(traversal.traverse(elseExpression).getCode() + "\n");
|
|
123830
|
+
}
|
|
123831
|
+
else if (elseExpression) {
|
|
123423
123832
|
if (!(elseExpression.get() instanceof core_1.Expressions.Source)) {
|
|
123424
123833
|
throw new Error("SwitchBodyTranspiler, Expected Source3, todo, " + elseExpression.get().constructor.name);
|
|
123425
123834
|
}
|
|
@@ -123461,21 +123870,26 @@ class TableExpressionTranspiler {
|
|
|
123461
123870
|
let field = "";
|
|
123462
123871
|
let usesTableLine = false;
|
|
123463
123872
|
const withKey = [];
|
|
123464
|
-
|
|
123465
|
-
|
|
123873
|
+
// KEY name: the row is searched, or counted by INDEX, in the order of that key
|
|
123874
|
+
const keyName = node.findDirectExpression(core_1.Expressions.SimpleName);
|
|
123875
|
+
if (keyName) {
|
|
123876
|
+
extra.push(`keyName: "${keyName.concatTokens().toLowerCase()}"`);
|
|
123466
123877
|
}
|
|
123467
|
-
|
|
123468
|
-
throw new Error("
|
|
123878
|
+
if (node.findDirectExpression(core_1.Expressions.Dynamic)) {
|
|
123879
|
+
return ret.appendString(`(function() { throw new Error("Table expression with a dynamic key, not supported, transpiler") })()`);
|
|
123469
123880
|
}
|
|
123470
|
-
else if (node.findDirectExpression(core_1.Expressions.
|
|
123471
|
-
|
|
123881
|
+
else if (node.getChildren().length === 3 && node.findDirectExpression(core_1.Expressions.Source)) {
|
|
123882
|
+
extra.push(`index: ${traversal.traverse(node.findDirectExpression(core_1.Expressions.Source)).getCode()}`);
|
|
123472
123883
|
}
|
|
123473
|
-
else if (node.
|
|
123474
|
-
|
|
123884
|
+
else if (node.findDirectTokenByText("INDEX")) {
|
|
123885
|
+
extra.push(`index: ${traversal.traverse(node.findExpressionAfterToken("INDEX")).getCode()}`);
|
|
123475
123886
|
}
|
|
123476
123887
|
else {
|
|
123477
123888
|
// conditions
|
|
123478
123889
|
for (const c of node.getChildren()) {
|
|
123890
|
+
if (c === keyName || ["KEY", "COMPONENTS"].includes(c.concatTokens().toUpperCase())) {
|
|
123891
|
+
continue;
|
|
123892
|
+
}
|
|
123479
123893
|
if (c instanceof core_1.Nodes.ExpressionNode && c.get() instanceof core_1.Expressions.ComponentChainSimple) {
|
|
123480
123894
|
field = new component_chain_simple_1.ComponentChainSimpleTranspiler("i.").transpile(c, traversal).getCode();
|
|
123481
123895
|
if (field === "i.table_line") {
|
|
@@ -123707,6 +124121,85 @@ exports.TargetFieldSymbolTranspiler = TargetFieldSymbolTranspiler;
|
|
|
123707
124121
|
|
|
123708
124122
|
/***/ },
|
|
123709
124123
|
|
|
124124
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/expressions/throw.js"
|
|
124125
|
+
/*!**************************************************************************!*\
|
|
124126
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/expressions/throw.js ***!
|
|
124127
|
+
\**************************************************************************/
|
|
124128
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
124129
|
+
|
|
124130
|
+
"use strict";
|
|
124131
|
+
|
|
124132
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
124133
|
+
if (k2 === undefined) k2 = k;
|
|
124134
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
124135
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
124136
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
124137
|
+
}
|
|
124138
|
+
Object.defineProperty(o, k2, desc);
|
|
124139
|
+
}) : (function(o, m, k, k2) {
|
|
124140
|
+
if (k2 === undefined) k2 = k;
|
|
124141
|
+
o[k2] = m[k];
|
|
124142
|
+
}));
|
|
124143
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
124144
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
124145
|
+
}) : function(o, v) {
|
|
124146
|
+
o["default"] = v;
|
|
124147
|
+
});
|
|
124148
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
124149
|
+
var ownKeys = function(o) {
|
|
124150
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
124151
|
+
var ar = [];
|
|
124152
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
124153
|
+
return ar;
|
|
124154
|
+
};
|
|
124155
|
+
return ownKeys(o);
|
|
124156
|
+
};
|
|
124157
|
+
return function (mod) {
|
|
124158
|
+
if (mod && mod.__esModule) return mod;
|
|
124159
|
+
var result = {};
|
|
124160
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
124161
|
+
__setModuleDefault(result, mod);
|
|
124162
|
+
return result;
|
|
124163
|
+
};
|
|
124164
|
+
})();
|
|
124165
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
124166
|
+
exports.ThrowTranspiler = void 0;
|
|
124167
|
+
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
124168
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
124169
|
+
const unique_identifier_1 = __webpack_require__(/*! ../unique_identifier */ "./node_modules/@abaplint/transpiler/build/src/unique_identifier.js");
|
|
124170
|
+
const new_object_1 = __webpack_require__(/*! ./new_object */ "./node_modules/@abaplint/transpiler/build/src/expressions/new_object.js");
|
|
124171
|
+
/** THROW cx( ... ) in COND and SWITCH: raises the exception as RAISE EXCEPTION NEW cx( ... ) does, the result is a statement */
|
|
124172
|
+
class ThrowTranspiler {
|
|
124173
|
+
transpile(node, traversal) {
|
|
124174
|
+
if (node.findDirectTokenByText("MESSAGE")) {
|
|
124175
|
+
return new chunk_1.Chunk().append(`throw new Error("THROW MESSAGE, not supported, transpiler");`, node, traversal);
|
|
124176
|
+
}
|
|
124177
|
+
const classNameToken = node.findDirectExpression(abaplint.Expressions.ClassName).getFirstToken();
|
|
124178
|
+
let parameters = "";
|
|
124179
|
+
const list = node.findDirectExpression(abaplint.Expressions.ParameterListS);
|
|
124180
|
+
const single = node.findDirectExpression(abaplint.Expressions.Source);
|
|
124181
|
+
if (list) {
|
|
124182
|
+
parameters = traversal.traverse(list).getCode();
|
|
124183
|
+
}
|
|
124184
|
+
else if (single) {
|
|
124185
|
+
// the single parameter is the default importing parameter of the constructor
|
|
124186
|
+
const scope = traversal.findCurrentScopeByToken(classNameToken);
|
|
124187
|
+
const cdef = traversal.findClassDefinition(classNameToken.getStr(), scope);
|
|
124188
|
+
const name = new_object_1.NewObjectTranspiler.findConstructor(cdef, scope)?.getParameters().getDefaultImporting()?.toLowerCase();
|
|
124189
|
+
parameters = `{${name}: ${traversal.traverse(single).getCode()}}`;
|
|
124190
|
+
}
|
|
124191
|
+
const lookup = traversal.lookupClassOrInterface(classNameToken.getStr(), classNameToken);
|
|
124192
|
+
const id = unique_identifier_1.UniqueIdentifier.get();
|
|
124193
|
+
return new chunk_1.Chunk().append(`const ${id} = await (new ${lookup}()).constructor_(${parameters});
|
|
124194
|
+
${id}.EXTRA_CX = ${traversal.buildExtraCX(node)};
|
|
124195
|
+
throw ${id};`, node, traversal);
|
|
124196
|
+
}
|
|
124197
|
+
}
|
|
124198
|
+
exports.ThrowTranspiler = ThrowTranspiler;
|
|
124199
|
+
//# sourceMappingURL=throw.js.map
|
|
124200
|
+
|
|
124201
|
+
/***/ },
|
|
124202
|
+
|
|
123710
124203
|
/***/ "./node_modules/@abaplint/transpiler/build/src/expressions/type_name_or_infer.js"
|
|
123711
124204
|
/*!***************************************************************************************!*\
|
|
123712
124205
|
!*** ./node_modules/@abaplint/transpiler/build/src/expressions/type_name_or_infer.js ***!
|
|
@@ -123717,7 +124210,9 @@ exports.TargetFieldSymbolTranspiler = TargetFieldSymbolTranspiler;
|
|
|
123717
124210
|
|
|
123718
124211
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
123719
124212
|
exports.TypeNameOrInfer = void 0;
|
|
124213
|
+
const core_1 = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
123720
124214
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
124215
|
+
const types_1 = __webpack_require__(/*! ../types */ "./node_modules/@abaplint/transpiler/build/src/types.js");
|
|
123721
124216
|
class TypeNameOrInfer {
|
|
123722
124217
|
findType(node, traversal) {
|
|
123723
124218
|
const scope = traversal.findCurrentScopeByToken(node.getFirstToken());
|
|
@@ -123729,7 +124224,12 @@ class TypeNameOrInfer {
|
|
|
123729
124224
|
return sqlType;
|
|
123730
124225
|
}
|
|
123731
124226
|
}
|
|
123732
|
-
|
|
124227
|
+
const text = "TypeNameOrInfer, type not found: " + node.concatTokens() + ", " + traversal.getCurrentObject().getName() + ", " + traversal.getFilename() + " line " + node.getFirstToken().getStart().getRow();
|
|
124228
|
+
if (traversal.options?.unknownTypes === types_1.UnknownTypesEnum.runtimeError) {
|
|
124229
|
+
// eg. # for a parameter of a class that is not there: the code fails when it runs, as with other unknown types
|
|
124230
|
+
return new core_1.BasicTypes.UnknownType(text);
|
|
124231
|
+
}
|
|
124232
|
+
throw new Error(text);
|
|
123733
124233
|
}
|
|
123734
124234
|
return type;
|
|
123735
124235
|
}
|
|
@@ -125505,8 +126005,12 @@ exports.InlineDeclarations = void 0;
|
|
|
125505
126005
|
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
125506
126006
|
const statements_1 = __webpack_require__(/*! ./statements */ "./node_modules/@abaplint/transpiler/build/src/statements/index.js");
|
|
125507
126007
|
class InlineDeclarations {
|
|
125508
|
-
static buildDeclarations(node, traversal) {
|
|
125509
|
-
const
|
|
126008
|
+
static buildDeclarations(node, traversal, programLevelOnly = false) {
|
|
126009
|
+
const include = (expression) => {
|
|
126010
|
+
return programLevelOnly === false
|
|
126011
|
+
|| InlineDeclarations.isProgramLevelScope(traversal.findCurrentScopeByToken(expression.getFirstToken()));
|
|
126012
|
+
};
|
|
126013
|
+
const inlineDataExpressions = node.findAllExpressionsRecursive(abaplint.Expressions.InlineData).filter(include);
|
|
125510
126014
|
let result = "";
|
|
125511
126015
|
for (const expression of inlineDataExpressions) {
|
|
125512
126016
|
const name = expression.findFirstExpression(abaplint.Expressions.TargetField)?.concatTokens();
|
|
@@ -125521,7 +126025,7 @@ class InlineDeclarations {
|
|
|
125521
126025
|
result += traversal.declare(variable) + "\n";
|
|
125522
126026
|
}
|
|
125523
126027
|
// todo: declare DATA and FSes according to when they appear in the code
|
|
125524
|
-
const inlineFieldSymbols = node.findAllExpressionsRecursive(abaplint.Expressions.InlineFS);
|
|
126028
|
+
const inlineFieldSymbols = node.findAllExpressionsRecursive(abaplint.Expressions.InlineFS).filter(include);
|
|
125525
126029
|
for (const expression of inlineFieldSymbols) {
|
|
125526
126030
|
const target = expression.findFirstExpression(abaplint.Expressions.TargetFieldSymbol);
|
|
125527
126031
|
if (target === undefined) {
|
|
@@ -125531,6 +126035,12 @@ class InlineDeclarations {
|
|
|
125531
126035
|
}
|
|
125532
126036
|
return result;
|
|
125533
126037
|
}
|
|
126038
|
+
/** inline declarations outside FORMs, methods and function modules belong to the program, or to an
|
|
126039
|
+
* event block like START-OF-SELECTION, which is also program global */
|
|
126040
|
+
static isProgramLevelScope(scope) {
|
|
126041
|
+
const stype = scope?.getIdentifier().stype;
|
|
126042
|
+
return stype === abaplint.ScopeType.Program || stype === abaplint.ScopeType.SelectionEvent;
|
|
126043
|
+
}
|
|
125534
126044
|
}
|
|
125535
126045
|
exports.InlineDeclarations = InlineDeclarations;
|
|
125536
126046
|
//# sourceMappingURL=inline.js.map
|
|
@@ -126507,6 +127017,27 @@ exports.AddTranspiler = AddTranspiler;
|
|
|
126507
127017
|
|
|
126508
127018
|
/***/ },
|
|
126509
127019
|
|
|
127020
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/add_corresponding.js"
|
|
127021
|
+
/*!*************************************************************************************!*\
|
|
127022
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/add_corresponding.js ***!
|
|
127023
|
+
\*************************************************************************************/
|
|
127024
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
127025
|
+
|
|
127026
|
+
"use strict";
|
|
127027
|
+
|
|
127028
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
127029
|
+
exports.AddCorrespondingTranspiler = void 0;
|
|
127030
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
127031
|
+
class AddCorrespondingTranspiler {
|
|
127032
|
+
transpile(_node, _traversal) {
|
|
127033
|
+
return new chunk_1.Chunk(`throw new Error("ADD-CORRESPONDING, not supported, transpiler");`);
|
|
127034
|
+
}
|
|
127035
|
+
}
|
|
127036
|
+
exports.AddCorrespondingTranspiler = AddCorrespondingTranspiler;
|
|
127037
|
+
//# sourceMappingURL=add_corresponding.js.map
|
|
127038
|
+
|
|
127039
|
+
/***/ },
|
|
127040
|
+
|
|
126510
127041
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/append.js"
|
|
126511
127042
|
/*!**************************************************************************!*\
|
|
126512
127043
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/append.js ***!
|
|
@@ -126890,6 +127421,27 @@ exports.AssignTranspiler = AssignTranspiler;
|
|
|
126890
127421
|
|
|
126891
127422
|
/***/ },
|
|
126892
127423
|
|
|
127424
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/assign_local_copy.js"
|
|
127425
|
+
/*!*************************************************************************************!*\
|
|
127426
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/assign_local_copy.js ***!
|
|
127427
|
+
\*************************************************************************************/
|
|
127428
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
127429
|
+
|
|
127430
|
+
"use strict";
|
|
127431
|
+
|
|
127432
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
127433
|
+
exports.AssignLocalCopyTranspiler = void 0;
|
|
127434
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
127435
|
+
class AssignLocalCopyTranspiler {
|
|
127436
|
+
transpile(_node, _traversal) {
|
|
127437
|
+
return new chunk_1.Chunk(`throw new Error("ASSIGN LOCAL COPY, not supported, transpiler");`);
|
|
127438
|
+
}
|
|
127439
|
+
}
|
|
127440
|
+
exports.AssignLocalCopyTranspiler = AssignLocalCopyTranspiler;
|
|
127441
|
+
//# sourceMappingURL=assign_local_copy.js.map
|
|
127442
|
+
|
|
127443
|
+
/***/ },
|
|
127444
|
+
|
|
126893
127445
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/at.js"
|
|
126894
127446
|
/*!**********************************************************************!*\
|
|
126895
127447
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/at.js ***!
|
|
@@ -127048,6 +127600,27 @@ exports.AuthorityCheckTranspiler = AuthorityCheckTranspiler;
|
|
|
127048
127600
|
|
|
127049
127601
|
/***/ },
|
|
127050
127602
|
|
|
127603
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/back.js"
|
|
127604
|
+
/*!************************************************************************!*\
|
|
127605
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/back.js ***!
|
|
127606
|
+
\************************************************************************/
|
|
127607
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
127608
|
+
|
|
127609
|
+
"use strict";
|
|
127610
|
+
|
|
127611
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
127612
|
+
exports.BackTranspiler = void 0;
|
|
127613
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
127614
|
+
class BackTranspiler {
|
|
127615
|
+
transpile(_node, _traversal) {
|
|
127616
|
+
return new chunk_1.Chunk(`throw new Error("BACK, not supported, transpiler");`);
|
|
127617
|
+
}
|
|
127618
|
+
}
|
|
127619
|
+
exports.BackTranspiler = BackTranspiler;
|
|
127620
|
+
//# sourceMappingURL=back.js.map
|
|
127621
|
+
|
|
127622
|
+
/***/ },
|
|
127623
|
+
|
|
127051
127624
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/break.js"
|
|
127052
127625
|
/*!*************************************************************************!*\
|
|
127053
127626
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/break.js ***!
|
|
@@ -127274,6 +127847,48 @@ exports.CallTranspiler = CallTranspiler;
|
|
|
127274
127847
|
|
|
127275
127848
|
/***/ },
|
|
127276
127849
|
|
|
127850
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/call_database.js"
|
|
127851
|
+
/*!*********************************************************************************!*\
|
|
127852
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/call_database.js ***!
|
|
127853
|
+
\*********************************************************************************/
|
|
127854
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
127855
|
+
|
|
127856
|
+
"use strict";
|
|
127857
|
+
|
|
127858
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
127859
|
+
exports.CallDatabaseTranspiler = void 0;
|
|
127860
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
127861
|
+
class CallDatabaseTranspiler {
|
|
127862
|
+
transpile(_node, _traversal) {
|
|
127863
|
+
return new chunk_1.Chunk(`throw new Error("CALL DATABASE PROCEDURE, not supported, transpiler");`);
|
|
127864
|
+
}
|
|
127865
|
+
}
|
|
127866
|
+
exports.CallDatabaseTranspiler = CallDatabaseTranspiler;
|
|
127867
|
+
//# sourceMappingURL=call_database.js.map
|
|
127868
|
+
|
|
127869
|
+
/***/ },
|
|
127870
|
+
|
|
127871
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/call_dialog.js"
|
|
127872
|
+
/*!*******************************************************************************!*\
|
|
127873
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/call_dialog.js ***!
|
|
127874
|
+
\*******************************************************************************/
|
|
127875
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
127876
|
+
|
|
127877
|
+
"use strict";
|
|
127878
|
+
|
|
127879
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
127880
|
+
exports.CallDialogTranspiler = void 0;
|
|
127881
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
127882
|
+
class CallDialogTranspiler {
|
|
127883
|
+
transpile(_node, _traversal) {
|
|
127884
|
+
return new chunk_1.Chunk(`throw new Error("CALL DIALOG, not supported, transpiler");`);
|
|
127885
|
+
}
|
|
127886
|
+
}
|
|
127887
|
+
exports.CallDialogTranspiler = CallDialogTranspiler;
|
|
127888
|
+
//# sourceMappingURL=call_dialog.js.map
|
|
127889
|
+
|
|
127890
|
+
/***/ },
|
|
127891
|
+
|
|
127277
127892
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/call_function.js"
|
|
127278
127893
|
/*!*********************************************************************************!*\
|
|
127279
127894
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/call_function.js ***!
|
|
@@ -127450,6 +128065,27 @@ exports.CallKernelTranspiler = CallKernelTranspiler;
|
|
|
127450
128065
|
|
|
127451
128066
|
/***/ },
|
|
127452
128067
|
|
|
128068
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/call_ole.js"
|
|
128069
|
+
/*!****************************************************************************!*\
|
|
128070
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/call_ole.js ***!
|
|
128071
|
+
\****************************************************************************/
|
|
128072
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
128073
|
+
|
|
128074
|
+
"use strict";
|
|
128075
|
+
|
|
128076
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
128077
|
+
exports.CallOLETranspiler = void 0;
|
|
128078
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
128079
|
+
class CallOLETranspiler {
|
|
128080
|
+
transpile(_node, _traversal) {
|
|
128081
|
+
return new chunk_1.Chunk(`throw new Error("CALL METHOD OF, not supported, transpiler");`);
|
|
128082
|
+
}
|
|
128083
|
+
}
|
|
128084
|
+
exports.CallOLETranspiler = CallOLETranspiler;
|
|
128085
|
+
//# sourceMappingURL=call_ole.js.map
|
|
128086
|
+
|
|
128087
|
+
/***/ },
|
|
128088
|
+
|
|
127453
128089
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/call_screen.js"
|
|
127454
128090
|
/*!*******************************************************************************!*\
|
|
127455
128091
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/call_screen.js ***!
|
|
@@ -127723,6 +128359,27 @@ exports.CheckTranspiler = CheckTranspiler;
|
|
|
127723
128359
|
|
|
127724
128360
|
/***/ },
|
|
127725
128361
|
|
|
128362
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/check_select_options.js"
|
|
128363
|
+
/*!****************************************************************************************!*\
|
|
128364
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/check_select_options.js ***!
|
|
128365
|
+
\****************************************************************************************/
|
|
128366
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
128367
|
+
|
|
128368
|
+
"use strict";
|
|
128369
|
+
|
|
128370
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
128371
|
+
exports.CheckSelectOptionsTranspiler = void 0;
|
|
128372
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
128373
|
+
class CheckSelectOptionsTranspiler {
|
|
128374
|
+
transpile(_node, _traversal) {
|
|
128375
|
+
return new chunk_1.Chunk(`throw new Error("CHECK SELECT-OPTIONS, not supported, transpiler");`);
|
|
128376
|
+
}
|
|
128377
|
+
}
|
|
128378
|
+
exports.CheckSelectOptionsTranspiler = CheckSelectOptionsTranspiler;
|
|
128379
|
+
//# sourceMappingURL=check_select_options.js.map
|
|
128380
|
+
|
|
128381
|
+
/***/ },
|
|
128382
|
+
|
|
127726
128383
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/class_deferred.js"
|
|
127727
128384
|
/*!**********************************************************************************!*\
|
|
127728
128385
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/class_deferred.js ***!
|
|
@@ -127940,8 +128597,14 @@ exports.ClearTranspiler = void 0;
|
|
|
127940
128597
|
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
127941
128598
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
127942
128599
|
class ClearTranspiler {
|
|
128600
|
+
body;
|
|
128601
|
+
/** body: FREE, which clears the body of a table with a header line; CLEAR clears its header line */
|
|
128602
|
+
constructor(body = false) {
|
|
128603
|
+
this.body = body;
|
|
128604
|
+
}
|
|
127943
128605
|
transpile(node, traversal) {
|
|
127944
|
-
const
|
|
128606
|
+
const targetNode = node.findDirectExpression(abaplint.Expressions.Target);
|
|
128607
|
+
const target = traversal.traverse(targetNode);
|
|
127945
128608
|
// Reference implementation for the source-map convention:
|
|
127946
128609
|
// - keep the target's own expression-level mappings by appending its Chunk
|
|
127947
128610
|
// (do NOT flatten with target.getCode(), that discards the mappings)
|
|
@@ -127949,9 +128612,24 @@ class ClearTranspiler {
|
|
|
127949
128612
|
// getEnd() which points one column past the statement
|
|
127950
128613
|
const ret = new chunk_1.Chunk();
|
|
127951
128614
|
ret.appendChunk(target);
|
|
127952
|
-
|
|
128615
|
+
if (this.body === false && targetNode && ClearTranspiler.isHeaderLineTable(targetNode, traversal)) {
|
|
128616
|
+
// CLEAR itab of a table with a header line clears the header line, CLEAR itab[] the rows
|
|
128617
|
+
ret.append(".getHeader().clear();", node.getLastToken(), traversal);
|
|
128618
|
+
}
|
|
128619
|
+
else {
|
|
128620
|
+
ret.append(".clear();", node.getLastToken(), traversal);
|
|
128621
|
+
}
|
|
127953
128622
|
return ret;
|
|
127954
128623
|
}
|
|
128624
|
+
/** the target is the plain name of a table with a header line (not itab[]) */
|
|
128625
|
+
static isHeaderLineTable(target, traversal) {
|
|
128626
|
+
if (target.getChildren().length !== 1 || !(target.getFirstChild()?.get() instanceof abaplint.Expressions.TargetField)) {
|
|
128627
|
+
return false;
|
|
128628
|
+
}
|
|
128629
|
+
const name = target.getFirstToken();
|
|
128630
|
+
const type = traversal.findCurrentScopeByToken(name)?.findVariable(name.getStr().replace(/^!/, ""))?.getType();
|
|
128631
|
+
return type instanceof abaplint.BasicTypes.TableType && type.isWithHeader();
|
|
128632
|
+
}
|
|
127955
128633
|
}
|
|
127956
128634
|
exports.ClearTranspiler = ClearTranspiler;
|
|
127957
128635
|
//# sourceMappingURL=clear.js.map
|
|
@@ -128259,157 +128937,178 @@ exports.CommitEntitiesTranspiler = CommitEntitiesTranspiler;
|
|
|
128259
128937
|
|
|
128260
128938
|
/***/ },
|
|
128261
128939
|
|
|
128262
|
-
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/
|
|
128263
|
-
|
|
128264
|
-
!*** ./node_modules/@abaplint/transpiler/build/src/statements/
|
|
128265
|
-
|
|
128266
|
-
(__unused_webpack_module, exports, __webpack_require__) {
|
|
128267
|
-
|
|
128268
|
-
"use strict";
|
|
128269
|
-
|
|
128270
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
128271
|
-
if (k2 === undefined) k2 = k;
|
|
128272
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
128273
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
128274
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
128275
|
-
}
|
|
128276
|
-
Object.defineProperty(o, k2, desc);
|
|
128277
|
-
}) : (function(o, m, k, k2) {
|
|
128278
|
-
if (k2 === undefined) k2 = k;
|
|
128279
|
-
o[k2] = m[k];
|
|
128280
|
-
}));
|
|
128281
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
128282
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
128283
|
-
}) : function(o, v) {
|
|
128284
|
-
o["default"] = v;
|
|
128285
|
-
});
|
|
128286
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
128287
|
-
var ownKeys = function(o) {
|
|
128288
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
128289
|
-
var ar = [];
|
|
128290
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
128291
|
-
return ar;
|
|
128292
|
-
};
|
|
128293
|
-
return ownKeys(o);
|
|
128294
|
-
};
|
|
128295
|
-
return function (mod) {
|
|
128296
|
-
if (mod && mod.__esModule) return mod;
|
|
128297
|
-
var result = {};
|
|
128298
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
128299
|
-
__setModuleDefault(result, mod);
|
|
128300
|
-
return result;
|
|
128301
|
-
};
|
|
128302
|
-
})();
|
|
128303
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
128304
|
-
exports.ComputeTranspiler = void 0;
|
|
128305
|
-
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
128306
|
-
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
128307
|
-
class ComputeTranspiler {
|
|
128308
|
-
transpile(node, traversal) {
|
|
128309
|
-
let source = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Source));
|
|
128310
|
-
const targets = [];
|
|
128311
|
-
for (const t of node.findDirectExpressions(abaplint.Expressions.Target)) {
|
|
128312
|
-
targets.push(traversal.traverse(t));
|
|
128313
|
-
}
|
|
128314
|
-
const ret = new chunk_1.Chunk();
|
|
128315
|
-
for (const target of targets.reverse()) {
|
|
128316
|
-
ret.appendChunk(target)
|
|
128317
|
-
.appendString(".set(")
|
|
128318
|
-
.appendChunk(source)
|
|
128319
|
-
.append(");", node.getLastToken(), traversal);
|
|
128320
|
-
source = target;
|
|
128321
|
-
}
|
|
128322
|
-
return ret;
|
|
128323
|
-
}
|
|
128324
|
-
}
|
|
128325
|
-
exports.ComputeTranspiler = ComputeTranspiler;
|
|
128326
|
-
//# sourceMappingURL=compute.js.map
|
|
128327
|
-
|
|
128328
|
-
/***/ },
|
|
128329
|
-
|
|
128330
|
-
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/concatenate.js"
|
|
128331
|
-
/*!*******************************************************************************!*\
|
|
128332
|
-
!*** ./node_modules/@abaplint/transpiler/build/src/statements/concatenate.js ***!
|
|
128333
|
-
\*******************************************************************************/
|
|
128940
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/communication.js"
|
|
128941
|
+
/*!*********************************************************************************!*\
|
|
128942
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/communication.js ***!
|
|
128943
|
+
\*********************************************************************************/
|
|
128334
128944
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
128335
128945
|
|
|
128336
128946
|
"use strict";
|
|
128337
128947
|
|
|
128338
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
128339
|
-
if (k2 === undefined) k2 = k;
|
|
128340
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
128341
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
128342
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
128343
|
-
}
|
|
128344
|
-
Object.defineProperty(o, k2, desc);
|
|
128345
|
-
}) : (function(o, m, k, k2) {
|
|
128346
|
-
if (k2 === undefined) k2 = k;
|
|
128347
|
-
o[k2] = m[k];
|
|
128348
|
-
}));
|
|
128349
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
128350
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
128351
|
-
}) : function(o, v) {
|
|
128352
|
-
o["default"] = v;
|
|
128353
|
-
});
|
|
128354
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
128355
|
-
var ownKeys = function(o) {
|
|
128356
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
128357
|
-
var ar = [];
|
|
128358
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
128359
|
-
return ar;
|
|
128360
|
-
};
|
|
128361
|
-
return ownKeys(o);
|
|
128362
|
-
};
|
|
128363
|
-
return function (mod) {
|
|
128364
|
-
if (mod && mod.__esModule) return mod;
|
|
128365
|
-
var result = {};
|
|
128366
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
128367
|
-
__setModuleDefault(result, mod);
|
|
128368
|
-
return result;
|
|
128369
|
-
};
|
|
128370
|
-
})();
|
|
128371
128948
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
128372
|
-
exports.
|
|
128373
|
-
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
128949
|
+
exports.CommunicationTranspiler = void 0;
|
|
128374
128950
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
128375
|
-
class
|
|
128376
|
-
transpile(
|
|
128377
|
-
|
|
128378
|
-
const slist = [];
|
|
128379
|
-
for (const s of node.findDirectExpressions(abaplint.Expressions.Source).concat(node.findDirectExpressions(abaplint.Expressions.SimpleSource3))) {
|
|
128380
|
-
slist.push(traversal.traverse(s));
|
|
128381
|
-
}
|
|
128382
|
-
let extra = "";
|
|
128383
|
-
if (node.findExpressionAfterToken("BY")) {
|
|
128384
|
-
extra = `, separatedBy: ${slist.pop()?.getCode()}`;
|
|
128385
|
-
}
|
|
128386
|
-
if (concat.startsWith("CONCATENATE LINES OF ")) {
|
|
128387
|
-
extra += ", lines: true";
|
|
128388
|
-
}
|
|
128389
|
-
if (concat.includes(" RESPECTING BLANKS")) {
|
|
128390
|
-
extra += ", respectingBlanks: true";
|
|
128391
|
-
}
|
|
128392
|
-
if (concat.includes(" IN BYTE MODE")) {
|
|
128393
|
-
extra += ", byteMode: true";
|
|
128394
|
-
}
|
|
128395
|
-
const target = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Target));
|
|
128396
|
-
return new chunk_1.Chunk()
|
|
128397
|
-
.append("abap.statements.concatenate({source: [", node, traversal)
|
|
128398
|
-
.join(slist)
|
|
128399
|
-
.appendString("], target: ")
|
|
128400
|
-
.appendChunk(target)
|
|
128401
|
-
.append(extra + "});", node.getLastToken(), traversal);
|
|
128951
|
+
class CommunicationTranspiler {
|
|
128952
|
+
transpile(_node, _traversal) {
|
|
128953
|
+
return new chunk_1.Chunk(`throw new Error("COMMUNICATION, not supported, transpiler");`);
|
|
128402
128954
|
}
|
|
128403
128955
|
}
|
|
128404
|
-
exports.
|
|
128405
|
-
//# sourceMappingURL=
|
|
128956
|
+
exports.CommunicationTranspiler = CommunicationTranspiler;
|
|
128957
|
+
//# sourceMappingURL=communication.js.map
|
|
128406
128958
|
|
|
128407
128959
|
/***/ },
|
|
128408
128960
|
|
|
128409
|
-
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/
|
|
128410
|
-
|
|
128411
|
-
!*** ./node_modules/@abaplint/transpiler/build/src/statements/
|
|
128412
|
-
|
|
128961
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/compute.js"
|
|
128962
|
+
/*!***************************************************************************!*\
|
|
128963
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/compute.js ***!
|
|
128964
|
+
\***************************************************************************/
|
|
128965
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
128966
|
+
|
|
128967
|
+
"use strict";
|
|
128968
|
+
|
|
128969
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
128970
|
+
if (k2 === undefined) k2 = k;
|
|
128971
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
128972
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
128973
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
128974
|
+
}
|
|
128975
|
+
Object.defineProperty(o, k2, desc);
|
|
128976
|
+
}) : (function(o, m, k, k2) {
|
|
128977
|
+
if (k2 === undefined) k2 = k;
|
|
128978
|
+
o[k2] = m[k];
|
|
128979
|
+
}));
|
|
128980
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
128981
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
128982
|
+
}) : function(o, v) {
|
|
128983
|
+
o["default"] = v;
|
|
128984
|
+
});
|
|
128985
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
128986
|
+
var ownKeys = function(o) {
|
|
128987
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
128988
|
+
var ar = [];
|
|
128989
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
128990
|
+
return ar;
|
|
128991
|
+
};
|
|
128992
|
+
return ownKeys(o);
|
|
128993
|
+
};
|
|
128994
|
+
return function (mod) {
|
|
128995
|
+
if (mod && mod.__esModule) return mod;
|
|
128996
|
+
var result = {};
|
|
128997
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
128998
|
+
__setModuleDefault(result, mod);
|
|
128999
|
+
return result;
|
|
129000
|
+
};
|
|
129001
|
+
})();
|
|
129002
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
129003
|
+
exports.ComputeTranspiler = void 0;
|
|
129004
|
+
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
129005
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
129006
|
+
class ComputeTranspiler {
|
|
129007
|
+
transpile(node, traversal) {
|
|
129008
|
+
let source = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Source));
|
|
129009
|
+
const targets = [];
|
|
129010
|
+
for (const t of node.findDirectExpressions(abaplint.Expressions.Target)) {
|
|
129011
|
+
targets.push(traversal.traverse(t));
|
|
129012
|
+
}
|
|
129013
|
+
const ret = new chunk_1.Chunk();
|
|
129014
|
+
for (const target of targets.reverse()) {
|
|
129015
|
+
ret.appendChunk(target)
|
|
129016
|
+
.appendString(".set(")
|
|
129017
|
+
.appendChunk(source)
|
|
129018
|
+
.append(");", node.getLastToken(), traversal);
|
|
129019
|
+
source = target;
|
|
129020
|
+
}
|
|
129021
|
+
return ret;
|
|
129022
|
+
}
|
|
129023
|
+
}
|
|
129024
|
+
exports.ComputeTranspiler = ComputeTranspiler;
|
|
129025
|
+
//# sourceMappingURL=compute.js.map
|
|
129026
|
+
|
|
129027
|
+
/***/ },
|
|
129028
|
+
|
|
129029
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/concatenate.js"
|
|
129030
|
+
/*!*******************************************************************************!*\
|
|
129031
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/concatenate.js ***!
|
|
129032
|
+
\*******************************************************************************/
|
|
129033
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
129034
|
+
|
|
129035
|
+
"use strict";
|
|
129036
|
+
|
|
129037
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
129038
|
+
if (k2 === undefined) k2 = k;
|
|
129039
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
129040
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
129041
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
129042
|
+
}
|
|
129043
|
+
Object.defineProperty(o, k2, desc);
|
|
129044
|
+
}) : (function(o, m, k, k2) {
|
|
129045
|
+
if (k2 === undefined) k2 = k;
|
|
129046
|
+
o[k2] = m[k];
|
|
129047
|
+
}));
|
|
129048
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
129049
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
129050
|
+
}) : function(o, v) {
|
|
129051
|
+
o["default"] = v;
|
|
129052
|
+
});
|
|
129053
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
129054
|
+
var ownKeys = function(o) {
|
|
129055
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
129056
|
+
var ar = [];
|
|
129057
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
129058
|
+
return ar;
|
|
129059
|
+
};
|
|
129060
|
+
return ownKeys(o);
|
|
129061
|
+
};
|
|
129062
|
+
return function (mod) {
|
|
129063
|
+
if (mod && mod.__esModule) return mod;
|
|
129064
|
+
var result = {};
|
|
129065
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
129066
|
+
__setModuleDefault(result, mod);
|
|
129067
|
+
return result;
|
|
129068
|
+
};
|
|
129069
|
+
})();
|
|
129070
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
129071
|
+
exports.ConcatenateTranspiler = void 0;
|
|
129072
|
+
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
129073
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
129074
|
+
class ConcatenateTranspiler {
|
|
129075
|
+
transpile(node, traversal) {
|
|
129076
|
+
const concat = node.concatTokens().toUpperCase();
|
|
129077
|
+
const slist = [];
|
|
129078
|
+
for (const s of node.findDirectExpressions(abaplint.Expressions.Source).concat(node.findDirectExpressions(abaplint.Expressions.SimpleSource3))) {
|
|
129079
|
+
slist.push(traversal.traverse(s));
|
|
129080
|
+
}
|
|
129081
|
+
let extra = "";
|
|
129082
|
+
if (node.findExpressionAfterToken("BY")) {
|
|
129083
|
+
extra = `, separatedBy: ${slist.pop()?.getCode()}`;
|
|
129084
|
+
}
|
|
129085
|
+
if (concat.startsWith("CONCATENATE LINES OF ")) {
|
|
129086
|
+
extra += ", lines: true";
|
|
129087
|
+
}
|
|
129088
|
+
if (concat.includes(" RESPECTING BLANKS")) {
|
|
129089
|
+
extra += ", respectingBlanks: true";
|
|
129090
|
+
}
|
|
129091
|
+
if (concat.includes(" IN BYTE MODE")) {
|
|
129092
|
+
extra += ", byteMode: true";
|
|
129093
|
+
}
|
|
129094
|
+
const target = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Target));
|
|
129095
|
+
return new chunk_1.Chunk()
|
|
129096
|
+
.append("abap.statements.concatenate({source: [", node, traversal)
|
|
129097
|
+
.join(slist)
|
|
129098
|
+
.appendString("], target: ")
|
|
129099
|
+
.appendChunk(target)
|
|
129100
|
+
.append(extra + "});", node.getLastToken(), traversal);
|
|
129101
|
+
}
|
|
129102
|
+
}
|
|
129103
|
+
exports.ConcatenateTranspiler = ConcatenateTranspiler;
|
|
129104
|
+
//# sourceMappingURL=concatenate.js.map
|
|
129105
|
+
|
|
129106
|
+
/***/ },
|
|
129107
|
+
|
|
129108
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/condense.js"
|
|
129109
|
+
/*!****************************************************************************!*\
|
|
129110
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/condense.js ***!
|
|
129111
|
+
\****************************************************************************/
|
|
128413
129112
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
128414
129113
|
|
|
128415
129114
|
"use strict";
|
|
@@ -128488,6 +129187,27 @@ exports.ConstantTranspiler = ConstantTranspiler;
|
|
|
128488
129187
|
|
|
128489
129188
|
/***/ },
|
|
128490
129189
|
|
|
129190
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/contexts.js"
|
|
129191
|
+
/*!****************************************************************************!*\
|
|
129192
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/contexts.js ***!
|
|
129193
|
+
\****************************************************************************/
|
|
129194
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
129195
|
+
|
|
129196
|
+
"use strict";
|
|
129197
|
+
|
|
129198
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
129199
|
+
exports.ContextsTranspiler = void 0;
|
|
129200
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
129201
|
+
class ContextsTranspiler {
|
|
129202
|
+
transpile(_node, _traversal) {
|
|
129203
|
+
return new chunk_1.Chunk(`throw new Error("CONTEXTS, not supported, transpiler");`);
|
|
129204
|
+
}
|
|
129205
|
+
}
|
|
129206
|
+
exports.ContextsTranspiler = ContextsTranspiler;
|
|
129207
|
+
//# sourceMappingURL=contexts.js.map
|
|
129208
|
+
|
|
129209
|
+
/***/ },
|
|
129210
|
+
|
|
128491
129211
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/continue.js"
|
|
128492
129212
|
/*!****************************************************************************!*\
|
|
128493
129213
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/continue.js ***!
|
|
@@ -128611,6 +129331,27 @@ exports.ConvertTranspiler = ConvertTranspiler;
|
|
|
128611
129331
|
|
|
128612
129332
|
/***/ },
|
|
128613
129333
|
|
|
129334
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/convert_text.js"
|
|
129335
|
+
/*!********************************************************************************!*\
|
|
129336
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/convert_text.js ***!
|
|
129337
|
+
\********************************************************************************/
|
|
129338
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
129339
|
+
|
|
129340
|
+
"use strict";
|
|
129341
|
+
|
|
129342
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
129343
|
+
exports.ConvertTextTranspiler = void 0;
|
|
129344
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
129345
|
+
class ConvertTextTranspiler {
|
|
129346
|
+
transpile(_node, _traversal) {
|
|
129347
|
+
return new chunk_1.Chunk(`throw new Error("CONVERT TEXT, not supported, transpiler");`);
|
|
129348
|
+
}
|
|
129349
|
+
}
|
|
129350
|
+
exports.ConvertTextTranspiler = ConvertTextTranspiler;
|
|
129351
|
+
//# sourceMappingURL=convert_text.js.map
|
|
129352
|
+
|
|
129353
|
+
/***/ },
|
|
129354
|
+
|
|
128614
129355
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/create_data.js"
|
|
128615
129356
|
/*!*******************************************************************************!*\
|
|
128616
129357
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/create_data.js ***!
|
|
@@ -128884,6 +129625,27 @@ exports.CreateObjectTranspiler = CreateObjectTranspiler;
|
|
|
128884
129625
|
|
|
128885
129626
|
/***/ },
|
|
128886
129627
|
|
|
129628
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/create_ole.js"
|
|
129629
|
+
/*!******************************************************************************!*\
|
|
129630
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/create_ole.js ***!
|
|
129631
|
+
\******************************************************************************/
|
|
129632
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
129633
|
+
|
|
129634
|
+
"use strict";
|
|
129635
|
+
|
|
129636
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
129637
|
+
exports.CreateOLETranspiler = void 0;
|
|
129638
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
129639
|
+
class CreateOLETranspiler {
|
|
129640
|
+
transpile(_node, _traversal) {
|
|
129641
|
+
return new chunk_1.Chunk(`throw new Error("CREATE OBJECT OLE, not supported, transpiler");`);
|
|
129642
|
+
}
|
|
129643
|
+
}
|
|
129644
|
+
exports.CreateOLETranspiler = CreateOLETranspiler;
|
|
129645
|
+
//# sourceMappingURL=create_ole.js.map
|
|
129646
|
+
|
|
129647
|
+
/***/ },
|
|
129648
|
+
|
|
128887
129649
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/data.js"
|
|
128888
129650
|
/*!************************************************************************!*\
|
|
128889
129651
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/data.js ***!
|
|
@@ -129202,6 +129964,27 @@ exports.DeleteDatasetTranspiler = DeleteDatasetTranspiler;
|
|
|
129202
129964
|
|
|
129203
129965
|
/***/ },
|
|
129204
129966
|
|
|
129967
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/delete_dynpro.js"
|
|
129968
|
+
/*!*********************************************************************************!*\
|
|
129969
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/delete_dynpro.js ***!
|
|
129970
|
+
\*********************************************************************************/
|
|
129971
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
129972
|
+
|
|
129973
|
+
"use strict";
|
|
129974
|
+
|
|
129975
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
129976
|
+
exports.DeleteDynproTranspiler = void 0;
|
|
129977
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
129978
|
+
class DeleteDynproTranspiler {
|
|
129979
|
+
transpile(_node, _traversal) {
|
|
129980
|
+
return new chunk_1.Chunk(`throw new Error("DELETE DYNPRO, not supported, transpiler");`);
|
|
129981
|
+
}
|
|
129982
|
+
}
|
|
129983
|
+
exports.DeleteDynproTranspiler = DeleteDynproTranspiler;
|
|
129984
|
+
//# sourceMappingURL=delete_dynpro.js.map
|
|
129985
|
+
|
|
129986
|
+
/***/ },
|
|
129987
|
+
|
|
129205
129988
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/delete_internal.js"
|
|
129206
129989
|
/*!***********************************************************************************!*\
|
|
129207
129990
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/delete_internal.js ***!
|
|
@@ -129260,6 +130043,9 @@ class DeleteInternalTranspiler {
|
|
|
129260
130043
|
if (componentCompare) {
|
|
129261
130044
|
// todo: this can be optimized, WITH TABLE KEY
|
|
129262
130045
|
extra.push("where: async " + traversal.traverse(componentCompare).getCode());
|
|
130046
|
+
if (concat.startsWith("DELETE TABLE ")) {
|
|
130047
|
+
extra.push("withTableKey: true");
|
|
130048
|
+
}
|
|
129263
130049
|
}
|
|
129264
130050
|
// todo, this is not completely correct, fields might have the name ADJACENT
|
|
129265
130051
|
if (node.findDirectTokenByText("ADJACENT")) {
|
|
@@ -129367,6 +130153,27 @@ exports.DeleteTextpoolTranspiler = DeleteTextpoolTranspiler;
|
|
|
129367
130153
|
|
|
129368
130154
|
/***/ },
|
|
129369
130155
|
|
|
130156
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/demand.js"
|
|
130157
|
+
/*!**************************************************************************!*\
|
|
130158
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/demand.js ***!
|
|
130159
|
+
\**************************************************************************/
|
|
130160
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
130161
|
+
|
|
130162
|
+
"use strict";
|
|
130163
|
+
|
|
130164
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
130165
|
+
exports.DemandTranspiler = void 0;
|
|
130166
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
130167
|
+
class DemandTranspiler {
|
|
130168
|
+
transpile(_node, _traversal) {
|
|
130169
|
+
return new chunk_1.Chunk(`throw new Error("DEMAND, not supported, transpiler");`);
|
|
130170
|
+
}
|
|
130171
|
+
}
|
|
130172
|
+
exports.DemandTranspiler = DemandTranspiler;
|
|
130173
|
+
//# sourceMappingURL=demand.js.map
|
|
130174
|
+
|
|
130175
|
+
/***/ },
|
|
130176
|
+
|
|
129370
130177
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/describe.js"
|
|
129371
130178
|
/*!****************************************************************************!*\
|
|
129372
130179
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/describe.js ***!
|
|
@@ -129423,6 +130230,28 @@ exports.DescribeTranspiler = DescribeTranspiler;
|
|
|
129423
130230
|
|
|
129424
130231
|
/***/ },
|
|
129425
130232
|
|
|
130233
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/detail.js"
|
|
130234
|
+
/*!**************************************************************************!*\
|
|
130235
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/detail.js ***!
|
|
130236
|
+
\**************************************************************************/
|
|
130237
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
130238
|
+
|
|
130239
|
+
"use strict";
|
|
130240
|
+
|
|
130241
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
130242
|
+
exports.DetailTranspiler = void 0;
|
|
130243
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
130244
|
+
class DetailTranspiler {
|
|
130245
|
+
transpile(_node, _traversal) {
|
|
130246
|
+
// obsolete short form of a list format setting (DETAIL), it does not change the text of the list
|
|
130247
|
+
return new chunk_1.Chunk("");
|
|
130248
|
+
}
|
|
130249
|
+
}
|
|
130250
|
+
exports.DetailTranspiler = DetailTranspiler;
|
|
130251
|
+
//# sourceMappingURL=detail.js.map
|
|
130252
|
+
|
|
130253
|
+
/***/ },
|
|
130254
|
+
|
|
129426
130255
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/divide.js"
|
|
129427
130256
|
/*!**************************************************************************!*\
|
|
129428
130257
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/divide.js ***!
|
|
@@ -130175,6 +131004,48 @@ exports.ExportTranspiler = ExportTranspiler;
|
|
|
130175
131004
|
|
|
130176
131005
|
/***/ },
|
|
130177
131006
|
|
|
131007
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/export_dynpro.js"
|
|
131008
|
+
/*!*********************************************************************************!*\
|
|
131009
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/export_dynpro.js ***!
|
|
131010
|
+
\*********************************************************************************/
|
|
131011
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
131012
|
+
|
|
131013
|
+
"use strict";
|
|
131014
|
+
|
|
131015
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
131016
|
+
exports.ExportDynproTranspiler = void 0;
|
|
131017
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
131018
|
+
class ExportDynproTranspiler {
|
|
131019
|
+
transpile(_node, _traversal) {
|
|
131020
|
+
return new chunk_1.Chunk(`throw new Error("EXPORT DYNPRO, not supported, transpiler");`);
|
|
131021
|
+
}
|
|
131022
|
+
}
|
|
131023
|
+
exports.ExportDynproTranspiler = ExportDynproTranspiler;
|
|
131024
|
+
//# sourceMappingURL=export_dynpro.js.map
|
|
131025
|
+
|
|
131026
|
+
/***/ },
|
|
131027
|
+
|
|
131028
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/extract.js"
|
|
131029
|
+
/*!***************************************************************************!*\
|
|
131030
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/extract.js ***!
|
|
131031
|
+
\***************************************************************************/
|
|
131032
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
131033
|
+
|
|
131034
|
+
"use strict";
|
|
131035
|
+
|
|
131036
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
131037
|
+
exports.ExtractTranspiler = void 0;
|
|
131038
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
131039
|
+
class ExtractTranspiler {
|
|
131040
|
+
transpile(_node, _traversal) {
|
|
131041
|
+
return new chunk_1.Chunk(`throw new Error("EXTRACT, not supported, transpiler");`);
|
|
131042
|
+
}
|
|
131043
|
+
}
|
|
131044
|
+
exports.ExtractTranspiler = ExtractTranspiler;
|
|
131045
|
+
//# sourceMappingURL=extract.js.map
|
|
131046
|
+
|
|
131047
|
+
/***/ },
|
|
131048
|
+
|
|
130178
131049
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/fetch_next_cursor.js"
|
|
130179
131050
|
/*!*************************************************************************************!*\
|
|
130180
131051
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/fetch_next_cursor.js ***!
|
|
@@ -130238,6 +131109,48 @@ exports.FetchNextCursorTranspiler = FetchNextCursorTranspiler;
|
|
|
130238
131109
|
|
|
130239
131110
|
/***/ },
|
|
130240
131111
|
|
|
131112
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/field.js"
|
|
131113
|
+
/*!*************************************************************************!*\
|
|
131114
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/field.js ***!
|
|
131115
|
+
\*************************************************************************/
|
|
131116
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
131117
|
+
|
|
131118
|
+
"use strict";
|
|
131119
|
+
|
|
131120
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
131121
|
+
exports.FieldTranspiler = void 0;
|
|
131122
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
131123
|
+
class FieldTranspiler {
|
|
131124
|
+
transpile(_node, _traversal) {
|
|
131125
|
+
return new chunk_1.Chunk(`throw new Error("FIELD, not supported, transpiler");`);
|
|
131126
|
+
}
|
|
131127
|
+
}
|
|
131128
|
+
exports.FieldTranspiler = FieldTranspiler;
|
|
131129
|
+
//# sourceMappingURL=field.js.map
|
|
131130
|
+
|
|
131131
|
+
/***/ },
|
|
131132
|
+
|
|
131133
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/field_group.js"
|
|
131134
|
+
/*!*******************************************************************************!*\
|
|
131135
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/field_group.js ***!
|
|
131136
|
+
\*******************************************************************************/
|
|
131137
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
131138
|
+
|
|
131139
|
+
"use strict";
|
|
131140
|
+
|
|
131141
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
131142
|
+
exports.FieldGroupTranspiler = void 0;
|
|
131143
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
131144
|
+
class FieldGroupTranspiler {
|
|
131145
|
+
transpile(_node, _traversal) {
|
|
131146
|
+
return new chunk_1.Chunk(`throw new Error("FIELD-GROUPS, not supported, transpiler");`);
|
|
131147
|
+
}
|
|
131148
|
+
}
|
|
131149
|
+
exports.FieldGroupTranspiler = FieldGroupTranspiler;
|
|
131150
|
+
//# sourceMappingURL=field_group.js.map
|
|
131151
|
+
|
|
131152
|
+
/***/ },
|
|
131153
|
+
|
|
130241
131154
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/field_symbol.js"
|
|
130242
131155
|
/*!********************************************************************************!*\
|
|
130243
131156
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/field_symbol.js ***!
|
|
@@ -130543,7 +131456,9 @@ exports.FormatTranspiler = void 0;
|
|
|
130543
131456
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
130544
131457
|
class FormatTranspiler {
|
|
130545
131458
|
transpile(_node, _traversal) {
|
|
130546
|
-
|
|
131459
|
+
// FORMAT only sets how list output looks (colors, intensity, inverse, hotspot, input fields, frames),
|
|
131460
|
+
// it does not change the text of the list
|
|
131461
|
+
return new chunk_1.Chunk("");
|
|
130547
131462
|
}
|
|
130548
131463
|
}
|
|
130549
131464
|
exports.FormatTranspiler = FormatTranspiler;
|
|
@@ -130564,7 +131479,8 @@ exports.FreeTranspiler = void 0;
|
|
|
130564
131479
|
const clear_1 = __webpack_require__(/*! ./clear */ "./node_modules/@abaplint/transpiler/build/src/statements/clear.js");
|
|
130565
131480
|
class FreeTranspiler {
|
|
130566
131481
|
transpile(node, traversal) {
|
|
130567
|
-
|
|
131482
|
+
// FREE of a table with a header line frees the table body, not the header line
|
|
131483
|
+
return new clear_1.ClearTranspiler(true).transpile(node, traversal);
|
|
130568
131484
|
}
|
|
130569
131485
|
}
|
|
130570
131486
|
exports.FreeTranspiler = FreeTranspiler;
|
|
@@ -130593,6 +131509,27 @@ exports.FreeMemoryTranspiler = FreeMemoryTranspiler;
|
|
|
130593
131509
|
|
|
130594
131510
|
/***/ },
|
|
130595
131511
|
|
|
131512
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/free_object.js"
|
|
131513
|
+
/*!*******************************************************************************!*\
|
|
131514
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/free_object.js ***!
|
|
131515
|
+
\*******************************************************************************/
|
|
131516
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
131517
|
+
|
|
131518
|
+
"use strict";
|
|
131519
|
+
|
|
131520
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
131521
|
+
exports.FreeObjectTranspiler = void 0;
|
|
131522
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
131523
|
+
class FreeObjectTranspiler {
|
|
131524
|
+
transpile(_node, _traversal) {
|
|
131525
|
+
return new chunk_1.Chunk(`throw new Error("FREE OBJECT, not supported, transpiler");`);
|
|
131526
|
+
}
|
|
131527
|
+
}
|
|
131528
|
+
exports.FreeObjectTranspiler = FreeObjectTranspiler;
|
|
131529
|
+
//# sourceMappingURL=free_object.js.map
|
|
131530
|
+
|
|
131531
|
+
/***/ },
|
|
131532
|
+
|
|
130596
131533
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/function_pool.js"
|
|
130597
131534
|
/*!*********************************************************************************!*\
|
|
130598
131535
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/function_pool.js ***!
|
|
@@ -130614,6 +131551,48 @@ exports.FunctionPoolTranspiler = FunctionPoolTranspiler;
|
|
|
130614
131551
|
|
|
130615
131552
|
/***/ },
|
|
130616
131553
|
|
|
131554
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/generate_dynpro.js"
|
|
131555
|
+
/*!***********************************************************************************!*\
|
|
131556
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/generate_dynpro.js ***!
|
|
131557
|
+
\***********************************************************************************/
|
|
131558
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
131559
|
+
|
|
131560
|
+
"use strict";
|
|
131561
|
+
|
|
131562
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
131563
|
+
exports.GenerateDynproTranspiler = void 0;
|
|
131564
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
131565
|
+
class GenerateDynproTranspiler {
|
|
131566
|
+
transpile(_node, _traversal) {
|
|
131567
|
+
return new chunk_1.Chunk(`throw new Error("GENERATE DYNPRO, not supported, transpiler");`);
|
|
131568
|
+
}
|
|
131569
|
+
}
|
|
131570
|
+
exports.GenerateDynproTranspiler = GenerateDynproTranspiler;
|
|
131571
|
+
//# sourceMappingURL=generate_dynpro.js.map
|
|
131572
|
+
|
|
131573
|
+
/***/ },
|
|
131574
|
+
|
|
131575
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/generate_report.js"
|
|
131576
|
+
/*!***********************************************************************************!*\
|
|
131577
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/generate_report.js ***!
|
|
131578
|
+
\***********************************************************************************/
|
|
131579
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
131580
|
+
|
|
131581
|
+
"use strict";
|
|
131582
|
+
|
|
131583
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
131584
|
+
exports.GenerateReportTranspiler = void 0;
|
|
131585
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
131586
|
+
class GenerateReportTranspiler {
|
|
131587
|
+
transpile(_node, _traversal) {
|
|
131588
|
+
return new chunk_1.Chunk(`throw new Error("GENERATE REPORT, not supported, transpiler");`);
|
|
131589
|
+
}
|
|
131590
|
+
}
|
|
131591
|
+
exports.GenerateReportTranspiler = GenerateReportTranspiler;
|
|
131592
|
+
//# sourceMappingURL=generate_report.js.map
|
|
131593
|
+
|
|
131594
|
+
/***/ },
|
|
131595
|
+
|
|
130617
131596
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/generate_subroutine.js"
|
|
130618
131597
|
/*!***************************************************************************************!*\
|
|
130619
131598
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/generate_subroutine.js ***!
|
|
@@ -130705,6 +131684,27 @@ exports.GenerateSubroutineTranspiler = GenerateSubroutineTranspiler;
|
|
|
130705
131684
|
|
|
130706
131685
|
/***/ },
|
|
130707
131686
|
|
|
131687
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/get.js"
|
|
131688
|
+
/*!***********************************************************************!*\
|
|
131689
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/get.js ***!
|
|
131690
|
+
\***********************************************************************/
|
|
131691
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
131692
|
+
|
|
131693
|
+
"use strict";
|
|
131694
|
+
|
|
131695
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
131696
|
+
exports.GetTranspiler = void 0;
|
|
131697
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
131698
|
+
class GetTranspiler {
|
|
131699
|
+
transpile(_node, _traversal) {
|
|
131700
|
+
return new chunk_1.Chunk(`throw new Error("GET, not supported, transpiler");`);
|
|
131701
|
+
}
|
|
131702
|
+
}
|
|
131703
|
+
exports.GetTranspiler = GetTranspiler;
|
|
131704
|
+
//# sourceMappingURL=get.js.map
|
|
131705
|
+
|
|
131706
|
+
/***/ },
|
|
131707
|
+
|
|
130708
131708
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/get_bit.js"
|
|
130709
131709
|
/*!***************************************************************************!*\
|
|
130710
131710
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/get_bit.js ***!
|
|
@@ -130767,6 +131767,27 @@ exports.GetBitTranspiler = GetBitTranspiler;
|
|
|
130767
131767
|
|
|
130768
131768
|
/***/ },
|
|
130769
131769
|
|
|
131770
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/get_cursor.js"
|
|
131771
|
+
/*!******************************************************************************!*\
|
|
131772
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/get_cursor.js ***!
|
|
131773
|
+
\******************************************************************************/
|
|
131774
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
131775
|
+
|
|
131776
|
+
"use strict";
|
|
131777
|
+
|
|
131778
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
131779
|
+
exports.GetCursorTranspiler = void 0;
|
|
131780
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
131781
|
+
class GetCursorTranspiler {
|
|
131782
|
+
transpile(_node, _traversal) {
|
|
131783
|
+
return new chunk_1.Chunk(`throw new Error("GET CURSOR, not supported, transpiler");`);
|
|
131784
|
+
}
|
|
131785
|
+
}
|
|
131786
|
+
exports.GetCursorTranspiler = GetCursorTranspiler;
|
|
131787
|
+
//# sourceMappingURL=get_cursor.js.map
|
|
131788
|
+
|
|
131789
|
+
/***/ },
|
|
131790
|
+
|
|
130770
131791
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/get_dataset.js"
|
|
130771
131792
|
/*!*******************************************************************************!*\
|
|
130772
131793
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/get_dataset.js ***!
|
|
@@ -130917,6 +131938,48 @@ exports.GetParameterTranspiler = GetParameterTranspiler;
|
|
|
130917
131938
|
|
|
130918
131939
|
/***/ },
|
|
130919
131940
|
|
|
131941
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/get_pf_status.js"
|
|
131942
|
+
/*!*********************************************************************************!*\
|
|
131943
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/get_pf_status.js ***!
|
|
131944
|
+
\*********************************************************************************/
|
|
131945
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
131946
|
+
|
|
131947
|
+
"use strict";
|
|
131948
|
+
|
|
131949
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
131950
|
+
exports.GetPFStatusTranspiler = void 0;
|
|
131951
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
131952
|
+
class GetPFStatusTranspiler {
|
|
131953
|
+
transpile(_node, _traversal) {
|
|
131954
|
+
return new chunk_1.Chunk(`throw new Error("GET PF-STATUS, not supported, transpiler");`);
|
|
131955
|
+
}
|
|
131956
|
+
}
|
|
131957
|
+
exports.GetPFStatusTranspiler = GetPFStatusTranspiler;
|
|
131958
|
+
//# sourceMappingURL=get_pf_status.js.map
|
|
131959
|
+
|
|
131960
|
+
/***/ },
|
|
131961
|
+
|
|
131962
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/get_property.js"
|
|
131963
|
+
/*!********************************************************************************!*\
|
|
131964
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/get_property.js ***!
|
|
131965
|
+
\********************************************************************************/
|
|
131966
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
131967
|
+
|
|
131968
|
+
"use strict";
|
|
131969
|
+
|
|
131970
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
131971
|
+
exports.GetPropertyTranspiler = void 0;
|
|
131972
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
131973
|
+
class GetPropertyTranspiler {
|
|
131974
|
+
transpile(_node, _traversal) {
|
|
131975
|
+
return new chunk_1.Chunk(`throw new Error("GET PROPERTY, not supported, transpiler");`);
|
|
131976
|
+
}
|
|
131977
|
+
}
|
|
131978
|
+
exports.GetPropertyTranspiler = GetPropertyTranspiler;
|
|
131979
|
+
//# sourceMappingURL=get_property.js.map
|
|
131980
|
+
|
|
131981
|
+
/***/ },
|
|
131982
|
+
|
|
130920
131983
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/get_reference.js"
|
|
130921
131984
|
/*!*********************************************************************************!*\
|
|
130922
131985
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/get_reference.js ***!
|
|
@@ -131126,7 +132189,9 @@ exports.HideTranspiler = void 0;
|
|
|
131126
132189
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
131127
132190
|
class HideTranspiler {
|
|
131128
132191
|
transpile(_node, _traversal) {
|
|
131129
|
-
|
|
132192
|
+
// HIDE keeps a field's value for the list line, for the line selection of an interactive list
|
|
132193
|
+
// (AT LINE-SELECTION), it does not change the list itself
|
|
132194
|
+
return new chunk_1.Chunk("");
|
|
131130
132195
|
}
|
|
131131
132196
|
}
|
|
131132
132197
|
exports.HideTranspiler = HideTranspiler;
|
|
@@ -131215,6 +132280,48 @@ exports.ImportTranspiler = ImportTranspiler;
|
|
|
131215
132280
|
|
|
131216
132281
|
/***/ },
|
|
131217
132282
|
|
|
132283
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/import_dynpro.js"
|
|
132284
|
+
/*!*********************************************************************************!*\
|
|
132285
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/import_dynpro.js ***!
|
|
132286
|
+
\*********************************************************************************/
|
|
132287
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
132288
|
+
|
|
132289
|
+
"use strict";
|
|
132290
|
+
|
|
132291
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
132292
|
+
exports.ImportDynproTranspiler = void 0;
|
|
132293
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
132294
|
+
class ImportDynproTranspiler {
|
|
132295
|
+
transpile(_node, _traversal) {
|
|
132296
|
+
return new chunk_1.Chunk(`throw new Error("IMPORT DYNPRO, not supported, transpiler");`);
|
|
132297
|
+
}
|
|
132298
|
+
}
|
|
132299
|
+
exports.ImportDynproTranspiler = ImportDynproTranspiler;
|
|
132300
|
+
//# sourceMappingURL=import_dynpro.js.map
|
|
132301
|
+
|
|
132302
|
+
/***/ },
|
|
132303
|
+
|
|
132304
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/import_nametab.js"
|
|
132305
|
+
/*!**********************************************************************************!*\
|
|
132306
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/import_nametab.js ***!
|
|
132307
|
+
\**********************************************************************************/
|
|
132308
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
132309
|
+
|
|
132310
|
+
"use strict";
|
|
132311
|
+
|
|
132312
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
132313
|
+
exports.ImportNametabTranspiler = void 0;
|
|
132314
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
132315
|
+
class ImportNametabTranspiler {
|
|
132316
|
+
transpile(_node, _traversal) {
|
|
132317
|
+
return new chunk_1.Chunk(`throw new Error("IMPORT NAMETAB, not supported, transpiler");`);
|
|
132318
|
+
}
|
|
132319
|
+
}
|
|
132320
|
+
exports.ImportNametabTranspiler = ImportNametabTranspiler;
|
|
132321
|
+
//# sourceMappingURL=import_nametab.js.map
|
|
132322
|
+
|
|
132323
|
+
/***/ },
|
|
132324
|
+
|
|
131218
132325
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/include.js"
|
|
131219
132326
|
/*!***************************************************************************!*\
|
|
131220
132327
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/include.js ***!
|
|
@@ -131330,6 +132437,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
131330
132437
|
};
|
|
131331
132438
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
131332
132439
|
__exportStar(__webpack_require__(/*! ./add */ "./node_modules/@abaplint/transpiler/build/src/statements/add.js"), exports);
|
|
132440
|
+
__exportStar(__webpack_require__(/*! ./add_corresponding */ "./node_modules/@abaplint/transpiler/build/src/statements/add_corresponding.js"), exports);
|
|
132441
|
+
__exportStar(__webpack_require__(/*! ./assign_local_copy */ "./node_modules/@abaplint/transpiler/build/src/statements/assign_local_copy.js"), exports);
|
|
132442
|
+
__exportStar(__webpack_require__(/*! ./communication */ "./node_modules/@abaplint/transpiler/build/src/statements/communication.js"), exports);
|
|
132443
|
+
__exportStar(__webpack_require__(/*! ./contexts */ "./node_modules/@abaplint/transpiler/build/src/statements/contexts.js"), exports);
|
|
132444
|
+
__exportStar(__webpack_require__(/*! ./convert_text */ "./node_modules/@abaplint/transpiler/build/src/statements/convert_text.js"), exports);
|
|
132445
|
+
__exportStar(__webpack_require__(/*! ./demand */ "./node_modules/@abaplint/transpiler/build/src/statements/demand.js"), exports);
|
|
132446
|
+
__exportStar(__webpack_require__(/*! ./pack */ "./node_modules/@abaplint/transpiler/build/src/statements/pack.js"), exports);
|
|
132447
|
+
__exportStar(__webpack_require__(/*! ./set_country */ "./node_modules/@abaplint/transpiler/build/src/statements/set_country.js"), exports);
|
|
132448
|
+
__exportStar(__webpack_require__(/*! ./supply */ "./node_modules/@abaplint/transpiler/build/src/statements/supply.js"), exports);
|
|
132449
|
+
__exportStar(__webpack_require__(/*! ./subtract_corresponding */ "./node_modules/@abaplint/transpiler/build/src/statements/subtract_corresponding.js"), exports);
|
|
131333
132450
|
__exportStar(__webpack_require__(/*! ./append */ "./node_modules/@abaplint/transpiler/build/src/statements/append.js"), exports);
|
|
131334
132451
|
__exportStar(__webpack_require__(/*! ./assert */ "./node_modules/@abaplint/transpiler/build/src/statements/assert.js"), exports);
|
|
131335
132452
|
__exportStar(__webpack_require__(/*! ./assign */ "./node_modules/@abaplint/transpiler/build/src/statements/assign.js"), exports);
|
|
@@ -131337,6 +132454,21 @@ __exportStar(__webpack_require__(/*! ./at_pf */ "./node_modules/@abaplint/transp
|
|
|
131337
132454
|
__exportStar(__webpack_require__(/*! ./at_selection_screen */ "./node_modules/@abaplint/transpiler/build/src/statements/at_selection_screen.js"), exports);
|
|
131338
132455
|
__exportStar(__webpack_require__(/*! ./at */ "./node_modules/@abaplint/transpiler/build/src/statements/at.js"), exports);
|
|
131339
132456
|
__exportStar(__webpack_require__(/*! ./at_user_command */ "./node_modules/@abaplint/transpiler/build/src/statements/at_user_command.js"), exports);
|
|
132457
|
+
__exportStar(__webpack_require__(/*! ./back */ "./node_modules/@abaplint/transpiler/build/src/statements/back.js"), exports);
|
|
132458
|
+
__exportStar(__webpack_require__(/*! ./call_dialog */ "./node_modules/@abaplint/transpiler/build/src/statements/call_dialog.js"), exports);
|
|
132459
|
+
__exportStar(__webpack_require__(/*! ./field */ "./node_modules/@abaplint/transpiler/build/src/statements/field.js"), exports);
|
|
132460
|
+
__exportStar(__webpack_require__(/*! ./get_cursor */ "./node_modules/@abaplint/transpiler/build/src/statements/get_cursor.js"), exports);
|
|
132461
|
+
__exportStar(__webpack_require__(/*! ./get_pf_status */ "./node_modules/@abaplint/transpiler/build/src/statements/get_pf_status.js"), exports);
|
|
132462
|
+
__exportStar(__webpack_require__(/*! ./modify_line */ "./node_modules/@abaplint/transpiler/build/src/statements/modify_line.js"), exports);
|
|
132463
|
+
__exportStar(__webpack_require__(/*! ./module */ "./node_modules/@abaplint/transpiler/build/src/statements/module.js"), exports);
|
|
132464
|
+
__exportStar(__webpack_require__(/*! ./position */ "./node_modules/@abaplint/transpiler/build/src/statements/position.js"), exports);
|
|
132465
|
+
__exportStar(__webpack_require__(/*! ./refresh_control */ "./node_modules/@abaplint/transpiler/build/src/statements/refresh_control.js"), exports);
|
|
132466
|
+
__exportStar(__webpack_require__(/*! ./scroll_list */ "./node_modules/@abaplint/transpiler/build/src/statements/scroll_list.js"), exports);
|
|
132467
|
+
__exportStar(__webpack_require__(/*! ./set_left */ "./node_modules/@abaplint/transpiler/build/src/statements/set_left.js"), exports);
|
|
132468
|
+
__exportStar(__webpack_require__(/*! ./set_margin */ "./node_modules/@abaplint/transpiler/build/src/statements/set_margin.js"), exports);
|
|
132469
|
+
__exportStar(__webpack_require__(/*! ./set_user_command */ "./node_modules/@abaplint/transpiler/build/src/statements/set_user_command.js"), exports);
|
|
132470
|
+
__exportStar(__webpack_require__(/*! ./suppress_dialog */ "./node_modules/@abaplint/transpiler/build/src/statements/suppress_dialog.js"), exports);
|
|
132471
|
+
__exportStar(__webpack_require__(/*! ./window */ "./node_modules/@abaplint/transpiler/build/src/statements/window.js"), exports);
|
|
131340
132472
|
__exportStar(__webpack_require__(/*! ./authority_check */ "./node_modules/@abaplint/transpiler/build/src/statements/authority_check.js"), exports);
|
|
131341
132473
|
__exportStar(__webpack_require__(/*! ./break_id */ "./node_modules/@abaplint/transpiler/build/src/statements/break_id.js"), exports);
|
|
131342
132474
|
__exportStar(__webpack_require__(/*! ./break */ "./node_modules/@abaplint/transpiler/build/src/statements/break.js"), exports);
|
|
@@ -131346,9 +132478,25 @@ __exportStar(__webpack_require__(/*! ./call_screen */ "./node_modules/@abaplint/
|
|
|
131346
132478
|
__exportStar(__webpack_require__(/*! ./call_selection_screen */ "./node_modules/@abaplint/transpiler/build/src/statements/call_selection_screen.js"), exports);
|
|
131347
132479
|
__exportStar(__webpack_require__(/*! ./call_transaction */ "./node_modules/@abaplint/transpiler/build/src/statements/call_transaction.js"), exports);
|
|
131348
132480
|
__exportStar(__webpack_require__(/*! ./call_transformation */ "./node_modules/@abaplint/transpiler/build/src/statements/call_transformation.js"), exports);
|
|
132481
|
+
__exportStar(__webpack_require__(/*! ./delete_dynpro */ "./node_modules/@abaplint/transpiler/build/src/statements/delete_dynpro.js"), exports);
|
|
132482
|
+
__exportStar(__webpack_require__(/*! ./export_dynpro */ "./node_modules/@abaplint/transpiler/build/src/statements/export_dynpro.js"), exports);
|
|
132483
|
+
__exportStar(__webpack_require__(/*! ./generate_dynpro */ "./node_modules/@abaplint/transpiler/build/src/statements/generate_dynpro.js"), exports);
|
|
132484
|
+
__exportStar(__webpack_require__(/*! ./generate_report */ "./node_modules/@abaplint/transpiler/build/src/statements/generate_report.js"), exports);
|
|
132485
|
+
__exportStar(__webpack_require__(/*! ./import_dynpro */ "./node_modules/@abaplint/transpiler/build/src/statements/import_dynpro.js"), exports);
|
|
132486
|
+
__exportStar(__webpack_require__(/*! ./import_nametab */ "./node_modules/@abaplint/transpiler/build/src/statements/import_nametab.js"), exports);
|
|
132487
|
+
__exportStar(__webpack_require__(/*! ./load_report */ "./node_modules/@abaplint/transpiler/build/src/statements/load_report.js"), exports);
|
|
131349
132488
|
__exportStar(__webpack_require__(/*! ./call */ "./node_modules/@abaplint/transpiler/build/src/statements/call.js"), exports);
|
|
131350
132489
|
__exportStar(__webpack_require__(/*! ./case */ "./node_modules/@abaplint/transpiler/build/src/statements/case.js"), exports);
|
|
131351
132490
|
__exportStar(__webpack_require__(/*! ./check */ "./node_modules/@abaplint/transpiler/build/src/statements/check.js"), exports);
|
|
132491
|
+
__exportStar(__webpack_require__(/*! ./check_select_options */ "./node_modules/@abaplint/transpiler/build/src/statements/check_select_options.js"), exports);
|
|
132492
|
+
__exportStar(__webpack_require__(/*! ./extract */ "./node_modules/@abaplint/transpiler/build/src/statements/extract.js"), exports);
|
|
132493
|
+
__exportStar(__webpack_require__(/*! ./field_group */ "./node_modules/@abaplint/transpiler/build/src/statements/field_group.js"), exports);
|
|
132494
|
+
__exportStar(__webpack_require__(/*! ./infotypes */ "./node_modules/@abaplint/transpiler/build/src/statements/infotypes.js"), exports);
|
|
132495
|
+
__exportStar(__webpack_require__(/*! ./insert_field_group */ "./node_modules/@abaplint/transpiler/build/src/statements/insert_field_group.js"), exports);
|
|
132496
|
+
__exportStar(__webpack_require__(/*! ./nodes */ "./node_modules/@abaplint/transpiler/build/src/statements/nodes.js"), exports);
|
|
132497
|
+
__exportStar(__webpack_require__(/*! ./put */ "./node_modules/@abaplint/transpiler/build/src/statements/put.js"), exports);
|
|
132498
|
+
__exportStar(__webpack_require__(/*! ./reject */ "./node_modules/@abaplint/transpiler/build/src/statements/reject.js"), exports);
|
|
132499
|
+
__exportStar(__webpack_require__(/*! ./get */ "./node_modules/@abaplint/transpiler/build/src/statements/get.js"), exports);
|
|
131352
132500
|
__exportStar(__webpack_require__(/*! ./class_deferred */ "./node_modules/@abaplint/transpiler/build/src/statements/class_deferred.js"), exports);
|
|
131353
132501
|
__exportStar(__webpack_require__(/*! ./class_definition_load */ "./node_modules/@abaplint/transpiler/build/src/statements/class_definition_load.js"), exports);
|
|
131354
132502
|
__exportStar(__webpack_require__(/*! ./class_implementation */ "./node_modules/@abaplint/transpiler/build/src/statements/class_implementation.js"), exports);
|
|
@@ -131370,6 +132518,11 @@ __exportStar(__webpack_require__(/*! ./continue */ "./node_modules/@abaplint/tra
|
|
|
131370
132518
|
__exportStar(__webpack_require__(/*! ./convert */ "./node_modules/@abaplint/transpiler/build/src/statements/convert.js"), exports);
|
|
131371
132519
|
__exportStar(__webpack_require__(/*! ./create_data */ "./node_modules/@abaplint/transpiler/build/src/statements/create_data.js"), exports);
|
|
131372
132520
|
__exportStar(__webpack_require__(/*! ./create_object */ "./node_modules/@abaplint/transpiler/build/src/statements/create_object.js"), exports);
|
|
132521
|
+
__exportStar(__webpack_require__(/*! ./call_ole */ "./node_modules/@abaplint/transpiler/build/src/statements/call_ole.js"), exports);
|
|
132522
|
+
__exportStar(__webpack_require__(/*! ./create_ole */ "./node_modules/@abaplint/transpiler/build/src/statements/create_ole.js"), exports);
|
|
132523
|
+
__exportStar(__webpack_require__(/*! ./free_object */ "./node_modules/@abaplint/transpiler/build/src/statements/free_object.js"), exports);
|
|
132524
|
+
__exportStar(__webpack_require__(/*! ./get_property */ "./node_modules/@abaplint/transpiler/build/src/statements/get_property.js"), exports);
|
|
132525
|
+
__exportStar(__webpack_require__(/*! ./set_property */ "./node_modules/@abaplint/transpiler/build/src/statements/set_property.js"), exports);
|
|
131373
132526
|
__exportStar(__webpack_require__(/*! ./data */ "./node_modules/@abaplint/transpiler/build/src/statements/data.js"), exports);
|
|
131374
132527
|
__exportStar(__webpack_require__(/*! ./delete_cluster */ "./node_modules/@abaplint/transpiler/build/src/statements/delete_cluster.js"), exports);
|
|
131375
132528
|
__exportStar(__webpack_require__(/*! ./delete_database */ "./node_modules/@abaplint/transpiler/build/src/statements/delete_database.js"), exports);
|
|
@@ -131379,6 +132532,7 @@ __exportStar(__webpack_require__(/*! ./delete_memory */ "./node_modules/@abaplin
|
|
|
131379
132532
|
__exportStar(__webpack_require__(/*! ./delete_report */ "./node_modules/@abaplint/transpiler/build/src/statements/delete_report.js"), exports);
|
|
131380
132533
|
__exportStar(__webpack_require__(/*! ./delete_textpool */ "./node_modules/@abaplint/transpiler/build/src/statements/delete_textpool.js"), exports);
|
|
131381
132534
|
__exportStar(__webpack_require__(/*! ./describe */ "./node_modules/@abaplint/transpiler/build/src/statements/describe.js"), exports);
|
|
132535
|
+
__exportStar(__webpack_require__(/*! ./detail */ "./node_modules/@abaplint/transpiler/build/src/statements/detail.js"), exports);
|
|
131382
132536
|
__exportStar(__webpack_require__(/*! ./divide */ "./node_modules/@abaplint/transpiler/build/src/statements/divide.js"), exports);
|
|
131383
132537
|
__exportStar(__webpack_require__(/*! ./do */ "./node_modules/@abaplint/transpiler/build/src/statements/do.js"), exports);
|
|
131384
132538
|
__exportStar(__webpack_require__(/*! ./editor_call */ "./node_modules/@abaplint/transpiler/build/src/statements/editor_call.js"), exports);
|
|
@@ -131424,6 +132578,7 @@ __exportStar(__webpack_require__(/*! ./insert_database */ "./node_modules/@abapl
|
|
|
131424
132578
|
__exportStar(__webpack_require__(/*! ./insert_internal */ "./node_modules/@abaplint/transpiler/build/src/statements/insert_internal.js"), exports);
|
|
131425
132579
|
__exportStar(__webpack_require__(/*! ./insert_report */ "./node_modules/@abaplint/transpiler/build/src/statements/insert_report.js"), exports);
|
|
131426
132580
|
__exportStar(__webpack_require__(/*! ./insert_textpool */ "./node_modules/@abaplint/transpiler/build/src/statements/insert_textpool.js"), exports);
|
|
132581
|
+
__exportStar(__webpack_require__(/*! ./input */ "./node_modules/@abaplint/transpiler/build/src/statements/input.js"), exports);
|
|
131427
132582
|
__exportStar(__webpack_require__(/*! ./leave */ "./node_modules/@abaplint/transpiler/build/src/statements/leave.js"), exports);
|
|
131428
132583
|
__exportStar(__webpack_require__(/*! ./log_point */ "./node_modules/@abaplint/transpiler/build/src/statements/log_point.js"), exports);
|
|
131429
132584
|
__exportStar(__webpack_require__(/*! ./loop_at_screen */ "./node_modules/@abaplint/transpiler/build/src/statements/loop_at_screen.js"), exports);
|
|
@@ -131439,12 +132594,14 @@ __exportStar(__webpack_require__(/*! ./move_corresponding */ "./node_modules/@ab
|
|
|
131439
132594
|
__exportStar(__webpack_require__(/*! ./move */ "./node_modules/@abaplint/transpiler/build/src/statements/move.js"), exports);
|
|
131440
132595
|
__exportStar(__webpack_require__(/*! ./multiply */ "./node_modules/@abaplint/transpiler/build/src/statements/multiply.js"), exports);
|
|
131441
132596
|
__exportStar(__webpack_require__(/*! ./native_sql */ "./node_modules/@abaplint/transpiler/build/src/statements/native_sql.js"), exports);
|
|
132597
|
+
__exportStar(__webpack_require__(/*! ./new_line */ "./node_modules/@abaplint/transpiler/build/src/statements/new_line.js"), exports);
|
|
131442
132598
|
__exportStar(__webpack_require__(/*! ./new_page */ "./node_modules/@abaplint/transpiler/build/src/statements/new_page.js"), exports);
|
|
131443
132599
|
__exportStar(__webpack_require__(/*! ./open_cursor */ "./node_modules/@abaplint/transpiler/build/src/statements/open_cursor.js"), exports);
|
|
131444
132600
|
__exportStar(__webpack_require__(/*! ./open_dataset */ "./node_modules/@abaplint/transpiler/build/src/statements/open_dataset.js"), exports);
|
|
131445
132601
|
__exportStar(__webpack_require__(/*! ./overlay */ "./node_modules/@abaplint/transpiler/build/src/statements/overlay.js"), exports);
|
|
131446
132602
|
__exportStar(__webpack_require__(/*! ./parameter */ "./node_modules/@abaplint/transpiler/build/src/statements/parameter.js"), exports);
|
|
131447
132603
|
__exportStar(__webpack_require__(/*! ./perform */ "./node_modules/@abaplint/transpiler/build/src/statements/perform.js"), exports);
|
|
132604
|
+
__exportStar(__webpack_require__(/*! ./print_control */ "./node_modules/@abaplint/transpiler/build/src/statements/print_control.js"), exports);
|
|
131448
132605
|
__exportStar(__webpack_require__(/*! ./program */ "./node_modules/@abaplint/transpiler/build/src/statements/program.js"), exports);
|
|
131449
132606
|
__exportStar(__webpack_require__(/*! ./raise_event */ "./node_modules/@abaplint/transpiler/build/src/statements/raise_event.js"), exports);
|
|
131450
132607
|
__exportStar(__webpack_require__(/*! ./raise */ "./node_modules/@abaplint/transpiler/build/src/statements/raise.js"), exports);
|
|
@@ -131491,6 +132648,7 @@ __exportStar(__webpack_require__(/*! ./start_of_selection */ "./node_modules/@ab
|
|
|
131491
132648
|
__exportStar(__webpack_require__(/*! ./load_of_program */ "./node_modules/@abaplint/transpiler/build/src/statements/load_of_program.js"), exports);
|
|
131492
132649
|
__exportStar(__webpack_require__(/*! ./stop */ "./node_modules/@abaplint/transpiler/build/src/statements/stop.js"), exports);
|
|
131493
132650
|
__exportStar(__webpack_require__(/*! ./sum */ "./node_modules/@abaplint/transpiler/build/src/statements/sum.js"), exports);
|
|
132651
|
+
__exportStar(__webpack_require__(/*! ./summary */ "./node_modules/@abaplint/transpiler/build/src/statements/summary.js"), exports);
|
|
131494
132652
|
__exportStar(__webpack_require__(/*! ./submit */ "./node_modules/@abaplint/transpiler/build/src/statements/submit.js"), exports);
|
|
131495
132653
|
__exportStar(__webpack_require__(/*! ./subtract */ "./node_modules/@abaplint/transpiler/build/src/statements/subtract.js"), exports);
|
|
131496
132654
|
__exportStar(__webpack_require__(/*! ./at_line_selection */ "./node_modules/@abaplint/transpiler/build/src/statements/at_line_selection.js"), exports);
|
|
@@ -131508,6 +132666,9 @@ __exportStar(__webpack_require__(/*! ./uline */ "./node_modules/@abaplint/transp
|
|
|
131508
132666
|
__exportStar(__webpack_require__(/*! ./unassign */ "./node_modules/@abaplint/transpiler/build/src/statements/unassign.js"), exports);
|
|
131509
132667
|
__exportStar(__webpack_require__(/*! ./unpack */ "./node_modules/@abaplint/transpiler/build/src/statements/unpack.js"), exports);
|
|
131510
132668
|
__exportStar(__webpack_require__(/*! ./update_database */ "./node_modules/@abaplint/transpiler/build/src/statements/update_database.js"), exports);
|
|
132669
|
+
__exportStar(__webpack_require__(/*! ./call_database */ "./node_modules/@abaplint/transpiler/build/src/statements/call_database.js"), exports);
|
|
132670
|
+
__exportStar(__webpack_require__(/*! ./merge_database */ "./node_modules/@abaplint/transpiler/build/src/statements/merge_database.js"), exports);
|
|
132671
|
+
__exportStar(__webpack_require__(/*! ./with */ "./node_modules/@abaplint/transpiler/build/src/statements/with.js"), exports);
|
|
131511
132672
|
__exportStar(__webpack_require__(/*! ./wait */ "./node_modules/@abaplint/transpiler/build/src/statements/wait.js"), exports);
|
|
131512
132673
|
__exportStar(__webpack_require__(/*! ./when */ "./node_modules/@abaplint/transpiler/build/src/statements/when.js"), exports);
|
|
131513
132674
|
__exportStar(__webpack_require__(/*! ./while */ "./node_modules/@abaplint/transpiler/build/src/statements/while.js"), exports);
|
|
@@ -131516,6 +132677,27 @@ __exportStar(__webpack_require__(/*! ./write */ "./node_modules/@abaplint/transp
|
|
|
131516
132677
|
|
|
131517
132678
|
/***/ },
|
|
131518
132679
|
|
|
132680
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/infotypes.js"
|
|
132681
|
+
/*!*****************************************************************************!*\
|
|
132682
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/infotypes.js ***!
|
|
132683
|
+
\*****************************************************************************/
|
|
132684
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
132685
|
+
|
|
132686
|
+
"use strict";
|
|
132687
|
+
|
|
132688
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
132689
|
+
exports.InfotypesTranspiler = void 0;
|
|
132690
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
132691
|
+
class InfotypesTranspiler {
|
|
132692
|
+
transpile(_node, _traversal) {
|
|
132693
|
+
return new chunk_1.Chunk(`throw new Error("INFOTYPES, not supported, transpiler");`);
|
|
132694
|
+
}
|
|
132695
|
+
}
|
|
132696
|
+
exports.InfotypesTranspiler = InfotypesTranspiler;
|
|
132697
|
+
//# sourceMappingURL=infotypes.js.map
|
|
132698
|
+
|
|
132699
|
+
/***/ },
|
|
132700
|
+
|
|
131519
132701
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/initialization.js"
|
|
131520
132702
|
/*!**********************************************************************************!*\
|
|
131521
132703
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/initialization.js ***!
|
|
@@ -131537,6 +132719,28 @@ exports.InitializationTranspiler = InitializationTranspiler;
|
|
|
131537
132719
|
|
|
131538
132720
|
/***/ },
|
|
131539
132721
|
|
|
132722
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/input.js"
|
|
132723
|
+
/*!*************************************************************************!*\
|
|
132724
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/input.js ***!
|
|
132725
|
+
\*************************************************************************/
|
|
132726
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
132727
|
+
|
|
132728
|
+
"use strict";
|
|
132729
|
+
|
|
132730
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
132731
|
+
exports.InputTranspiler = void 0;
|
|
132732
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
132733
|
+
class InputTranspiler {
|
|
132734
|
+
transpile(_node, _traversal) {
|
|
132735
|
+
// obsolete short form of a list format setting (INPUT), it does not change the text of the list
|
|
132736
|
+
return new chunk_1.Chunk("");
|
|
132737
|
+
}
|
|
132738
|
+
}
|
|
132739
|
+
exports.InputTranspiler = InputTranspiler;
|
|
132740
|
+
//# sourceMappingURL=input.js.map
|
|
132741
|
+
|
|
132742
|
+
/***/ },
|
|
132743
|
+
|
|
131540
132744
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/insert_database.js"
|
|
131541
132745
|
/*!***********************************************************************************!*\
|
|
131542
132746
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/insert_database.js ***!
|
|
@@ -131643,6 +132847,27 @@ function findConnection(connection, traversal) {
|
|
|
131643
132847
|
|
|
131644
132848
|
/***/ },
|
|
131645
132849
|
|
|
132850
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/insert_field_group.js"
|
|
132851
|
+
/*!**************************************************************************************!*\
|
|
132852
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/insert_field_group.js ***!
|
|
132853
|
+
\**************************************************************************************/
|
|
132854
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
132855
|
+
|
|
132856
|
+
"use strict";
|
|
132857
|
+
|
|
132858
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
132859
|
+
exports.InsertFieldGroupTranspiler = void 0;
|
|
132860
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
132861
|
+
class InsertFieldGroupTranspiler {
|
|
132862
|
+
transpile(_node, _traversal) {
|
|
132863
|
+
return new chunk_1.Chunk(`throw new Error("INSERT INTO field group, not supported, transpiler");`);
|
|
132864
|
+
}
|
|
132865
|
+
}
|
|
132866
|
+
exports.InsertFieldGroupTranspiler = InsertFieldGroupTranspiler;
|
|
132867
|
+
//# sourceMappingURL=insert_field_group.js.map
|
|
132868
|
+
|
|
132869
|
+
/***/ },
|
|
132870
|
+
|
|
131646
132871
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/insert_internal.js"
|
|
131647
132872
|
/*!***********************************************************************************!*\
|
|
131648
132873
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/insert_internal.js ***!
|
|
@@ -131694,6 +132919,8 @@ class InsertInternalTranspiler {
|
|
|
131694
132919
|
const source = node.findDirectExpression(abaplint.Expressions.SimpleSource4)
|
|
131695
132920
|
|| node.findDirectExpression(abaplint.Expressions.Source);
|
|
131696
132921
|
const target = node.findDirectExpression(abaplint.Expressions.Target);
|
|
132922
|
+
// INSERT TABLE itab. and INSERT itab INDEX n. name only the table, its header line goes into it
|
|
132923
|
+
const shortForm = target === undefined && source !== undefined ? traversal.traverse(source).getCode() : undefined;
|
|
131697
132924
|
const concat = node.concatTokens().toUpperCase();
|
|
131698
132925
|
if (concat.startsWith("INSERT LINES OF ")) {
|
|
131699
132926
|
options.push("lines: true");
|
|
@@ -131701,6 +132928,9 @@ class InsertInternalTranspiler {
|
|
|
131701
132928
|
if (concat.startsWith("INSERT INITIAL LINE ")) {
|
|
131702
132929
|
options.push("initial: true");
|
|
131703
132930
|
}
|
|
132931
|
+
else if (shortForm !== undefined) {
|
|
132932
|
+
options.push("data: " + shortForm + ".getHeader()");
|
|
132933
|
+
}
|
|
131704
132934
|
else {
|
|
131705
132935
|
options.push("data: " + traversal.traverse(source).getCode());
|
|
131706
132936
|
}
|
|
@@ -131716,7 +132946,7 @@ class InsertInternalTranspiler {
|
|
|
131716
132946
|
if (assigning) {
|
|
131717
132947
|
options.push("assigning: " + traversal.traverse((assigning.findFirstExpression(abaplint.Expressions.FieldSymbol))).getCode());
|
|
131718
132948
|
}
|
|
131719
|
-
options.push("table: " + traversal.traverse(target).getCode());
|
|
132949
|
+
options.push("table: " + (shortForm ?? traversal.traverse(target).getCode()));
|
|
131720
132950
|
return new chunk_1.Chunk()
|
|
131721
132951
|
.append(`abap.statements.insertInternal({`, node, traversal)
|
|
131722
132952
|
.appendString(options.join(", "))
|
|
@@ -131812,6 +133042,27 @@ exports.LoadOfProgramTranspiler = LoadOfProgramTranspiler;
|
|
|
131812
133042
|
|
|
131813
133043
|
/***/ },
|
|
131814
133044
|
|
|
133045
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/load_report.js"
|
|
133046
|
+
/*!*******************************************************************************!*\
|
|
133047
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/load_report.js ***!
|
|
133048
|
+
\*******************************************************************************/
|
|
133049
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
133050
|
+
|
|
133051
|
+
"use strict";
|
|
133052
|
+
|
|
133053
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
133054
|
+
exports.LoadReportTranspiler = void 0;
|
|
133055
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
133056
|
+
class LoadReportTranspiler {
|
|
133057
|
+
transpile(_node, _traversal) {
|
|
133058
|
+
return new chunk_1.Chunk(`throw new Error("LOAD REPORT, not supported, transpiler");`);
|
|
133059
|
+
}
|
|
133060
|
+
}
|
|
133061
|
+
exports.LoadReportTranspiler = LoadReportTranspiler;
|
|
133062
|
+
//# sourceMappingURL=load_report.js.map
|
|
133063
|
+
|
|
133064
|
+
/***/ },
|
|
133065
|
+
|
|
131815
133066
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/log_point.js"
|
|
131816
133067
|
/*!*****************************************************************************!*\
|
|
131817
133068
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/log_point.js ***!
|
|
@@ -132091,6 +133342,27 @@ exports.MacroCallTranspiler = MacroCallTranspiler;
|
|
|
132091
133342
|
|
|
132092
133343
|
/***/ },
|
|
132093
133344
|
|
|
133345
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/merge_database.js"
|
|
133346
|
+
/*!**********************************************************************************!*\
|
|
133347
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/merge_database.js ***!
|
|
133348
|
+
\**********************************************************************************/
|
|
133349
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
133350
|
+
|
|
133351
|
+
"use strict";
|
|
133352
|
+
|
|
133353
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
133354
|
+
exports.MergeDatabaseTranspiler = void 0;
|
|
133355
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
133356
|
+
class MergeDatabaseTranspiler {
|
|
133357
|
+
transpile(_node, _traversal) {
|
|
133358
|
+
return new chunk_1.Chunk(`throw new Error("MERGE, not supported, transpiler");`);
|
|
133359
|
+
}
|
|
133360
|
+
}
|
|
133361
|
+
exports.MergeDatabaseTranspiler = MergeDatabaseTranspiler;
|
|
133362
|
+
//# sourceMappingURL=merge_database.js.map
|
|
133363
|
+
|
|
133364
|
+
/***/ },
|
|
133365
|
+
|
|
132094
133366
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/message.js"
|
|
132095
133367
|
/*!***************************************************************************!*\
|
|
132096
133368
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/message.js ***!
|
|
@@ -132564,6 +133836,17 @@ class ModifyDatabaseTranspiler {
|
|
|
132564
133836
|
if (dbtab === undefined) {
|
|
132565
133837
|
throw new Error("internal error, ModifyDatabaseTranspiler");
|
|
132566
133838
|
}
|
|
133839
|
+
// "MODIFY itab FROM wa" is parsed as a database MODIFY, but when itab is an internal table
|
|
133840
|
+
// it is the short form of the internal table MODIFY: in a LOOP it changes the current line
|
|
133841
|
+
const name = dbtab.findDirectExpression(abaplint.Expressions.Dynamic) ? undefined : dbtab.getFirstToken();
|
|
133842
|
+
const variable = name ? traversal.findCurrentScopeByToken(name)?.findVariable(name.getStr()) : undefined;
|
|
133843
|
+
const from = node.findExpressionAfterToken("FROM");
|
|
133844
|
+
if (name && variable && variable.getType() instanceof abaplint.BasicTypes.TableType
|
|
133845
|
+
&& from && node.findExpressionAfterToken("TABLE") === undefined) {
|
|
133846
|
+
const target = traversal.prefixAndName(name, variable.getFilename());
|
|
133847
|
+
const source = traversal.traverse(from).getCode();
|
|
133848
|
+
return new chunk_1.Chunk(`abap.statements.modifyInternal(${target}, {from: ${source}, ...${ModifyDatabaseTranspiler.currentLine(target)}});`);
|
|
133849
|
+
}
|
|
132567
133850
|
const table = new expressions_1.DatabaseTableTranspiler(false).transpile(dbtab, traversal);
|
|
132568
133851
|
const options = [];
|
|
132569
133852
|
const tab = node.findExpressionAfterToken("TABLE");
|
|
@@ -132571,13 +133854,16 @@ class ModifyDatabaseTranspiler {
|
|
|
132571
133854
|
const ttab = traversal.traverse(tab);
|
|
132572
133855
|
options.push(`"table": ` + ttab.getCode());
|
|
132573
133856
|
}
|
|
132574
|
-
const from = node.findExpressionAfterToken("FROM");
|
|
132575
133857
|
if (from && from.get() instanceof abaplint.Expressions.SQLSource) {
|
|
132576
133858
|
const tvalues = traversal.traverseWithTableContext(dbtab.concatTokens(), from);
|
|
132577
133859
|
options.push(`"values": ` + tvalues.getCode());
|
|
132578
133860
|
}
|
|
132579
133861
|
return new chunk_1.Chunk(`await abap.statements.modifyDatabase(${table.getCode()}, {${options.join(", ")}});`);
|
|
132580
133862
|
}
|
|
133863
|
+
/** the index of the current line, when the table is looped at, else nothing */
|
|
133864
|
+
static currentLine(target) {
|
|
133865
|
+
return `(${target}.loops?.size === 1 ? {index: new abap.types.Integer().set(${target}.getCurrentLoopIndex() + 1)} : {})`;
|
|
133866
|
+
}
|
|
132581
133867
|
}
|
|
132582
133868
|
exports.ModifyDatabaseTranspiler = ModifyDatabaseTranspiler;
|
|
132583
133869
|
//# sourceMappingURL=modify_database.js.map
|
|
@@ -132767,6 +134053,7 @@ exports.ModifyInternalTranspiler = void 0;
|
|
|
132767
134053
|
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
132768
134054
|
const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
|
|
132769
134055
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
134056
|
+
const modify_database_1 = __webpack_require__(/*! ./modify_database */ "./node_modules/@abaplint/transpiler/build/src/statements/modify_database.js");
|
|
132770
134057
|
class ModifyInternalTranspiler {
|
|
132771
134058
|
transpile(node, traversal) {
|
|
132772
134059
|
const target = traversal.traverse(node.findDirectExpression(abaplint.Expressions.Target)).getCode();
|
|
@@ -132794,6 +134081,13 @@ class ModifyInternalTranspiler {
|
|
|
132794
134081
|
}
|
|
132795
134082
|
extra.push("transporting: [" + list.join(",") + "]");
|
|
132796
134083
|
}
|
|
134084
|
+
// without INDEX, WHERE or TABLE, in a LOOP: the current line, from the header line when FROM is left out
|
|
134085
|
+
if (index === undefined && whereNode === undefined && node.findDirectTokenByText("TABLE") === undefined) {
|
|
134086
|
+
if (from === undefined) {
|
|
134087
|
+
extra.push(`from: ${target}.getHeader?.()`);
|
|
134088
|
+
}
|
|
134089
|
+
extra.push("..." + modify_database_1.ModifyDatabaseTranspiler.currentLine(target));
|
|
134090
|
+
}
|
|
132797
134091
|
let concat = "";
|
|
132798
134092
|
if (extra.length > 0) {
|
|
132799
134093
|
concat = ",{" + extra.join(",") + "}";
|
|
@@ -132809,6 +134103,27 @@ exports.ModifyInternalTranspiler = ModifyInternalTranspiler;
|
|
|
132809
134103
|
|
|
132810
134104
|
/***/ },
|
|
132811
134105
|
|
|
134106
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/modify_line.js"
|
|
134107
|
+
/*!*******************************************************************************!*\
|
|
134108
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/modify_line.js ***!
|
|
134109
|
+
\*******************************************************************************/
|
|
134110
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
134111
|
+
|
|
134112
|
+
"use strict";
|
|
134113
|
+
|
|
134114
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
134115
|
+
exports.ModifyLineTranspiler = void 0;
|
|
134116
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
134117
|
+
class ModifyLineTranspiler {
|
|
134118
|
+
transpile(_node, _traversal) {
|
|
134119
|
+
return new chunk_1.Chunk(`throw new Error("MODIFY LINE, not supported, transpiler");`);
|
|
134120
|
+
}
|
|
134121
|
+
}
|
|
134122
|
+
exports.ModifyLineTranspiler = ModifyLineTranspiler;
|
|
134123
|
+
//# sourceMappingURL=modify_line.js.map
|
|
134124
|
+
|
|
134125
|
+
/***/ },
|
|
134126
|
+
|
|
132812
134127
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/modify_screen.js"
|
|
132813
134128
|
/*!*********************************************************************************!*\
|
|
132814
134129
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/modify_screen.js ***!
|
|
@@ -132830,6 +134145,27 @@ exports.ModifyScreenTranspiler = ModifyScreenTranspiler;
|
|
|
132830
134145
|
|
|
132831
134146
|
/***/ },
|
|
132832
134147
|
|
|
134148
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/module.js"
|
|
134149
|
+
/*!**************************************************************************!*\
|
|
134150
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/module.js ***!
|
|
134151
|
+
\**************************************************************************/
|
|
134152
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
134153
|
+
|
|
134154
|
+
"use strict";
|
|
134155
|
+
|
|
134156
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
134157
|
+
exports.ModuleTranspiler = void 0;
|
|
134158
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
134159
|
+
class ModuleTranspiler {
|
|
134160
|
+
transpile(_node, _traversal) {
|
|
134161
|
+
return new chunk_1.Chunk(`throw new Error("MODULE, not supported, transpiler");`);
|
|
134162
|
+
}
|
|
134163
|
+
}
|
|
134164
|
+
exports.ModuleTranspiler = ModuleTranspiler;
|
|
134165
|
+
//# sourceMappingURL=module.js.map
|
|
134166
|
+
|
|
134167
|
+
/***/ },
|
|
134168
|
+
|
|
132833
134169
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/move.js"
|
|
132834
134170
|
/*!************************************************************************!*\
|
|
132835
134171
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/move.js ***!
|
|
@@ -133177,6 +134513,28 @@ exports.NativeSQLTranspiler = NativeSQLTranspiler;
|
|
|
133177
134513
|
|
|
133178
134514
|
/***/ },
|
|
133179
134515
|
|
|
134516
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/new_line.js"
|
|
134517
|
+
/*!****************************************************************************!*\
|
|
134518
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/new_line.js ***!
|
|
134519
|
+
\****************************************************************************/
|
|
134520
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
134521
|
+
|
|
134522
|
+
"use strict";
|
|
134523
|
+
|
|
134524
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
134525
|
+
exports.NewLineTranspiler = void 0;
|
|
134526
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
134527
|
+
class NewLineTranspiler {
|
|
134528
|
+
transpile(node, traversal) {
|
|
134529
|
+
// NEW-LINE [NO-SCROLLING | SCROLLING]: the next output starts a new line, scrolling has no effect on the text
|
|
134530
|
+
return new chunk_1.Chunk().append("abap.statements.newLine();", node, traversal);
|
|
134531
|
+
}
|
|
134532
|
+
}
|
|
134533
|
+
exports.NewLineTranspiler = NewLineTranspiler;
|
|
134534
|
+
//# sourceMappingURL=new_line.js.map
|
|
134535
|
+
|
|
134536
|
+
/***/ },
|
|
134537
|
+
|
|
133180
134538
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/new_page.js"
|
|
133181
134539
|
/*!****************************************************************************!*\
|
|
133182
134540
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/new_page.js ***!
|
|
@@ -133198,6 +134556,27 @@ exports.NewPageTranspiler = NewPageTranspiler;
|
|
|
133198
134556
|
|
|
133199
134557
|
/***/ },
|
|
133200
134558
|
|
|
134559
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/nodes.js"
|
|
134560
|
+
/*!*************************************************************************!*\
|
|
134561
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/nodes.js ***!
|
|
134562
|
+
\*************************************************************************/
|
|
134563
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
134564
|
+
|
|
134565
|
+
"use strict";
|
|
134566
|
+
|
|
134567
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
134568
|
+
exports.NodesTranspiler = void 0;
|
|
134569
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
134570
|
+
class NodesTranspiler {
|
|
134571
|
+
transpile(_node, _traversal) {
|
|
134572
|
+
return new chunk_1.Chunk(`throw new Error("NODES, not supported, transpiler");`);
|
|
134573
|
+
}
|
|
134574
|
+
}
|
|
134575
|
+
exports.NodesTranspiler = NodesTranspiler;
|
|
134576
|
+
//# sourceMappingURL=nodes.js.map
|
|
134577
|
+
|
|
134578
|
+
/***/ },
|
|
134579
|
+
|
|
133201
134580
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/open_cursor.js"
|
|
133202
134581
|
/*!*******************************************************************************!*\
|
|
133203
134582
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/open_cursor.js ***!
|
|
@@ -133397,6 +134776,27 @@ exports.OverlayTranspiler = OverlayTranspiler;
|
|
|
133397
134776
|
|
|
133398
134777
|
/***/ },
|
|
133399
134778
|
|
|
134779
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/pack.js"
|
|
134780
|
+
/*!************************************************************************!*\
|
|
134781
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/pack.js ***!
|
|
134782
|
+
\************************************************************************/
|
|
134783
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
134784
|
+
|
|
134785
|
+
"use strict";
|
|
134786
|
+
|
|
134787
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
134788
|
+
exports.PackTranspiler = void 0;
|
|
134789
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
134790
|
+
class PackTranspiler {
|
|
134791
|
+
transpile(_node, _traversal) {
|
|
134792
|
+
return new chunk_1.Chunk(`throw new Error("PACK, not supported, transpiler");`);
|
|
134793
|
+
}
|
|
134794
|
+
}
|
|
134795
|
+
exports.PackTranspiler = PackTranspiler;
|
|
134796
|
+
//# sourceMappingURL=pack.js.map
|
|
134797
|
+
|
|
134798
|
+
/***/ },
|
|
134799
|
+
|
|
133400
134800
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/parameter.js"
|
|
133401
134801
|
/*!*****************************************************************************!*\
|
|
133402
134802
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/parameter.js ***!
|
|
@@ -133533,21 +134933,33 @@ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/tr
|
|
|
133533
134933
|
class PerformTranspiler {
|
|
133534
134934
|
transpile(node, traversal) {
|
|
133535
134935
|
const formName = node.findDirectExpression(abaplint.Expressions.FormName);
|
|
133536
|
-
|
|
134936
|
+
// PERFORM (name) IN PROGRAM ...: the name of the subroutine is the content of the field, as it is, so it must be
|
|
134937
|
+
// in upper case to be found
|
|
134938
|
+
const dynamicName = formName === undefined ? node.findDirectExpression(abaplint.Expressions.Dynamic) : undefined;
|
|
134939
|
+
if (formName === undefined && dynamicName === undefined) {
|
|
133537
134940
|
return new chunk_1.Chunk(`throw new Error("PerformTranspiler FormName not found");`);
|
|
133538
134941
|
}
|
|
133539
|
-
else if (node.concatTokens().toUpperCase().includes(" IN PROGRAM ")) {
|
|
134942
|
+
else if (formName === undefined || node.concatTokens().toUpperCase().includes(" IN PROGRAM ")) {
|
|
134943
|
+
// the end of the key in abap.Forms, after an open literal 'PROG-<program>-
|
|
134944
|
+
const formKey = formName === undefined
|
|
134945
|
+
? "' + " + traversal.traverse(dynamicName.getChildren()[1]).getCode() + ".get().toString().trimEnd()"
|
|
134946
|
+
: formName.concatTokens().toUpperCase() + "'";
|
|
133540
134947
|
const expression = node.findExpressionAfterToken("PROGRAM");
|
|
133541
134948
|
let ref = "";
|
|
133542
134949
|
let program = "";
|
|
133543
134950
|
if (expression?.get() instanceof abaplint.Expressions.Dynamic) {
|
|
133544
|
-
|
|
133545
|
-
|
|
134951
|
+
// any field, eg. a structure component; sy-repid is the name of the current program
|
|
134952
|
+
const field = expression.getChildren()[1];
|
|
134953
|
+
const name = field.concatTokens().toUpperCase() === "SY-REPID"
|
|
134954
|
+
? `'${traversal.getCurrentObject().getName().toUpperCase()}'`
|
|
134955
|
+
: traversal.traverse(field).getCode() + ".get().trimEnd()";
|
|
134956
|
+
ref = `abap.Forms['PROG-' + ${name} + '-${formKey}]`;
|
|
133546
134957
|
program = `'PROG-' + ${name} + '-'`;
|
|
133547
134958
|
}
|
|
133548
134959
|
else {
|
|
133549
|
-
|
|
133550
|
-
|
|
134960
|
+
// IN PROGRAM without a name, or no IN PROGRAM: the current program
|
|
134961
|
+
const progName = expression?.concatTokens().toUpperCase() ?? traversal.getCurrentObject().getName().toUpperCase();
|
|
134962
|
+
ref = `abap.Forms['PROG-${progName}-${formKey}]`;
|
|
133551
134963
|
program = `'PROG-${progName}-'`;
|
|
133552
134964
|
}
|
|
133553
134965
|
const params = [];
|
|
@@ -133621,6 +135033,49 @@ exports.PerformTranspiler = PerformTranspiler;
|
|
|
133621
135033
|
|
|
133622
135034
|
/***/ },
|
|
133623
135035
|
|
|
135036
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/position.js"
|
|
135037
|
+
/*!****************************************************************************!*\
|
|
135038
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/position.js ***!
|
|
135039
|
+
\****************************************************************************/
|
|
135040
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
135041
|
+
|
|
135042
|
+
"use strict";
|
|
135043
|
+
|
|
135044
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
135045
|
+
exports.PositionTranspiler = void 0;
|
|
135046
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
135047
|
+
class PositionTranspiler {
|
|
135048
|
+
transpile(_node, _traversal) {
|
|
135049
|
+
return new chunk_1.Chunk(`throw new Error("POSITION, not supported, transpiler");`);
|
|
135050
|
+
}
|
|
135051
|
+
}
|
|
135052
|
+
exports.PositionTranspiler = PositionTranspiler;
|
|
135053
|
+
//# sourceMappingURL=position.js.map
|
|
135054
|
+
|
|
135055
|
+
/***/ },
|
|
135056
|
+
|
|
135057
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/print_control.js"
|
|
135058
|
+
/*!*********************************************************************************!*\
|
|
135059
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/print_control.js ***!
|
|
135060
|
+
\*********************************************************************************/
|
|
135061
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
135062
|
+
|
|
135063
|
+
"use strict";
|
|
135064
|
+
|
|
135065
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
135066
|
+
exports.PrintControlTranspiler = void 0;
|
|
135067
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
135068
|
+
class PrintControlTranspiler {
|
|
135069
|
+
transpile(_node, _traversal) {
|
|
135070
|
+
// PRINT-CONTROL sets print formats for the spool, it does not change the text of the list
|
|
135071
|
+
return new chunk_1.Chunk("");
|
|
135072
|
+
}
|
|
135073
|
+
}
|
|
135074
|
+
exports.PrintControlTranspiler = PrintControlTranspiler;
|
|
135075
|
+
//# sourceMappingURL=print_control.js.map
|
|
135076
|
+
|
|
135077
|
+
/***/ },
|
|
135078
|
+
|
|
133624
135079
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/program.js"
|
|
133625
135080
|
/*!***************************************************************************!*\
|
|
133626
135081
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/program.js ***!
|
|
@@ -133643,6 +135098,27 @@ exports.ProgramTranspiler = ProgramTranspiler;
|
|
|
133643
135098
|
|
|
133644
135099
|
/***/ },
|
|
133645
135100
|
|
|
135101
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/put.js"
|
|
135102
|
+
/*!***********************************************************************!*\
|
|
135103
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/put.js ***!
|
|
135104
|
+
\***********************************************************************/
|
|
135105
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
135106
|
+
|
|
135107
|
+
"use strict";
|
|
135108
|
+
|
|
135109
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
135110
|
+
exports.PutTranspiler = void 0;
|
|
135111
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
135112
|
+
class PutTranspiler {
|
|
135113
|
+
transpile(_node, _traversal) {
|
|
135114
|
+
return new chunk_1.Chunk(`throw new Error("PUT, not supported, transpiler");`);
|
|
135115
|
+
}
|
|
135116
|
+
}
|
|
135117
|
+
exports.PutTranspiler = PutTranspiler;
|
|
135118
|
+
//# sourceMappingURL=put.js.map
|
|
135119
|
+
|
|
135120
|
+
/***/ },
|
|
135121
|
+
|
|
133646
135122
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/raise.js"
|
|
133647
135123
|
/*!*************************************************************************!*\
|
|
133648
135124
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/raise.js ***!
|
|
@@ -134207,6 +135683,34 @@ class ReadTableTranspiler {
|
|
|
134207
135683
|
extra.push("into: " + name);
|
|
134208
135684
|
}
|
|
134209
135685
|
}
|
|
135686
|
+
// COMPARING comp1 comp2 ... | ALL FIELDS, TRANSPORTING comp1 comp2 ...
|
|
135687
|
+
const children = node.getChildren();
|
|
135688
|
+
const comparingAt = children.findIndex(c => c instanceof abaplint.Nodes.TokenNode && c.concatTokens().toUpperCase() === "COMPARING");
|
|
135689
|
+
let transported = undefined;
|
|
135690
|
+
if (comparingAt >= 0) {
|
|
135691
|
+
const names = [];
|
|
135692
|
+
for (let i = comparingAt + 1; i < children.length; i++) {
|
|
135693
|
+
const c = children[i];
|
|
135694
|
+
if (!(c instanceof abaplint.Nodes.ExpressionNode) || !(c.get() instanceof abaplint.Expressions.FieldSub)) {
|
|
135695
|
+
break;
|
|
135696
|
+
}
|
|
135697
|
+
names.push(c.concatTokens().toLowerCase());
|
|
135698
|
+
}
|
|
135699
|
+
// the parser can read "COMPARING a TRANSPORTING b" as four compared names
|
|
135700
|
+
const cut = names.indexOf("transporting");
|
|
135701
|
+
if (cut >= 0) {
|
|
135702
|
+
transported = names.slice(cut + 1);
|
|
135703
|
+
names.splice(cut);
|
|
135704
|
+
}
|
|
135705
|
+
extra.push("comparing: " + JSON.stringify(names.join(" ") === "all fields" ? ["*"] : names));
|
|
135706
|
+
}
|
|
135707
|
+
const transportingFields = node.findDirectExpression(abaplint.Expressions.TransportingFields);
|
|
135708
|
+
if (transportingFields) {
|
|
135709
|
+
transported = transportingFields.findAllExpressions(abaplint.Expressions.FieldSub).map(f => f.concatTokens().toLowerCase());
|
|
135710
|
+
}
|
|
135711
|
+
if (transported !== undefined && transported.join(" ") !== "all fields") {
|
|
135712
|
+
extra.push("transporting: " + JSON.stringify(transported));
|
|
135713
|
+
}
|
|
134210
135714
|
const compare = node.findDirectExpression(abaplint.Expressions.ComponentCompareSimple);
|
|
134211
135715
|
if (compare) {
|
|
134212
135716
|
const withKey = [];
|
|
@@ -134391,6 +135895,48 @@ exports.RefreshTranspiler = RefreshTranspiler;
|
|
|
134391
135895
|
|
|
134392
135896
|
/***/ },
|
|
134393
135897
|
|
|
135898
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/refresh_control.js"
|
|
135899
|
+
/*!***********************************************************************************!*\
|
|
135900
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/refresh_control.js ***!
|
|
135901
|
+
\***********************************************************************************/
|
|
135902
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
135903
|
+
|
|
135904
|
+
"use strict";
|
|
135905
|
+
|
|
135906
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
135907
|
+
exports.RefreshControlTranspiler = void 0;
|
|
135908
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
135909
|
+
class RefreshControlTranspiler {
|
|
135910
|
+
transpile(_node, _traversal) {
|
|
135911
|
+
return new chunk_1.Chunk(`throw new Error("REFRESH CONTROL, not supported, transpiler");`);
|
|
135912
|
+
}
|
|
135913
|
+
}
|
|
135914
|
+
exports.RefreshControlTranspiler = RefreshControlTranspiler;
|
|
135915
|
+
//# sourceMappingURL=refresh_control.js.map
|
|
135916
|
+
|
|
135917
|
+
/***/ },
|
|
135918
|
+
|
|
135919
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/reject.js"
|
|
135920
|
+
/*!**************************************************************************!*\
|
|
135921
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/reject.js ***!
|
|
135922
|
+
\**************************************************************************/
|
|
135923
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
135924
|
+
|
|
135925
|
+
"use strict";
|
|
135926
|
+
|
|
135927
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
135928
|
+
exports.RejectTranspiler = void 0;
|
|
135929
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
135930
|
+
class RejectTranspiler {
|
|
135931
|
+
transpile(_node, _traversal) {
|
|
135932
|
+
return new chunk_1.Chunk(`throw new Error("REJECT, not supported, transpiler");`);
|
|
135933
|
+
}
|
|
135934
|
+
}
|
|
135935
|
+
exports.RejectTranspiler = RejectTranspiler;
|
|
135936
|
+
//# sourceMappingURL=reject.js.map
|
|
135937
|
+
|
|
135938
|
+
/***/ },
|
|
135939
|
+
|
|
134394
135940
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/replace.js"
|
|
134395
135941
|
/*!***************************************************************************!*\
|
|
134396
135942
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/replace.js ***!
|
|
@@ -134800,6 +136346,27 @@ exports.ScanTranspiler = ScanTranspiler;
|
|
|
134800
136346
|
|
|
134801
136347
|
/***/ },
|
|
134802
136348
|
|
|
136349
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/scroll_list.js"
|
|
136350
|
+
/*!*******************************************************************************!*\
|
|
136351
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/scroll_list.js ***!
|
|
136352
|
+
\*******************************************************************************/
|
|
136353
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
136354
|
+
|
|
136355
|
+
"use strict";
|
|
136356
|
+
|
|
136357
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
136358
|
+
exports.ScrollListTranspiler = void 0;
|
|
136359
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
136360
|
+
class ScrollListTranspiler {
|
|
136361
|
+
transpile(_node, _traversal) {
|
|
136362
|
+
return new chunk_1.Chunk(`throw new Error("SCROLL LIST, not supported, transpiler");`);
|
|
136363
|
+
}
|
|
136364
|
+
}
|
|
136365
|
+
exports.ScrollListTranspiler = ScrollListTranspiler;
|
|
136366
|
+
//# sourceMappingURL=scroll_list.js.map
|
|
136367
|
+
|
|
136368
|
+
/***/ },
|
|
136369
|
+
|
|
134803
136370
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/search.js"
|
|
134804
136371
|
/*!**************************************************************************!*\
|
|
134805
136372
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/search.js ***!
|
|
@@ -135396,6 +136963,27 @@ exports.SetBlankTranspiler = SetBlankTranspiler;
|
|
|
135396
136963
|
|
|
135397
136964
|
/***/ },
|
|
135398
136965
|
|
|
136966
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_country.js"
|
|
136967
|
+
/*!*******************************************************************************!*\
|
|
136968
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/set_country.js ***!
|
|
136969
|
+
\*******************************************************************************/
|
|
136970
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
136971
|
+
|
|
136972
|
+
"use strict";
|
|
136973
|
+
|
|
136974
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
136975
|
+
exports.SetCountryTranspiler = void 0;
|
|
136976
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
136977
|
+
class SetCountryTranspiler {
|
|
136978
|
+
transpile(_node, _traversal) {
|
|
136979
|
+
return new chunk_1.Chunk(`throw new Error("SET COUNTRY, not supported, transpiler");`);
|
|
136980
|
+
}
|
|
136981
|
+
}
|
|
136982
|
+
exports.SetCountryTranspiler = SetCountryTranspiler;
|
|
136983
|
+
//# sourceMappingURL=set_country.js.map
|
|
136984
|
+
|
|
136985
|
+
/***/ },
|
|
136986
|
+
|
|
135399
136987
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_cursor.js"
|
|
135400
136988
|
/*!******************************************************************************!*\
|
|
135401
136989
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/set_cursor.js ***!
|
|
@@ -135459,7 +137047,8 @@ exports.SetExtendedCheckTranspiler = void 0;
|
|
|
135459
137047
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
135460
137048
|
class SetExtendedCheckTranspiler {
|
|
135461
137049
|
transpile(_node, _traversal) {
|
|
135462
|
-
|
|
137050
|
+
// switches the extended program check on or off for the code that follows, nothing happens when it runs
|
|
137051
|
+
return new chunk_1.Chunk("");
|
|
135463
137052
|
}
|
|
135464
137053
|
}
|
|
135465
137054
|
exports.SetExtendedCheckTranspiler = SetExtendedCheckTranspiler;
|
|
@@ -135596,6 +137185,27 @@ exports.SetLanguageTranspiler = SetLanguageTranspiler;
|
|
|
135596
137185
|
|
|
135597
137186
|
/***/ },
|
|
135598
137187
|
|
|
137188
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_left.js"
|
|
137189
|
+
/*!****************************************************************************!*\
|
|
137190
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/set_left.js ***!
|
|
137191
|
+
\****************************************************************************/
|
|
137192
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
137193
|
+
|
|
137194
|
+
"use strict";
|
|
137195
|
+
|
|
137196
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
137197
|
+
exports.SetLeftTranspiler = void 0;
|
|
137198
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
137199
|
+
class SetLeftTranspiler {
|
|
137200
|
+
transpile(_node, _traversal) {
|
|
137201
|
+
return new chunk_1.Chunk(`throw new Error("SET LEFT SCROLL-BOUNDARY, not supported, transpiler");`);
|
|
137202
|
+
}
|
|
137203
|
+
}
|
|
137204
|
+
exports.SetLeftTranspiler = SetLeftTranspiler;
|
|
137205
|
+
//# sourceMappingURL=set_left.js.map
|
|
137206
|
+
|
|
137207
|
+
/***/ },
|
|
137208
|
+
|
|
135599
137209
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_locale.js"
|
|
135600
137210
|
/*!******************************************************************************!*\
|
|
135601
137211
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/set_locale.js ***!
|
|
@@ -135652,6 +137262,27 @@ exports.SetLocaleTranspiler = SetLocaleTranspiler;
|
|
|
135652
137262
|
|
|
135653
137263
|
/***/ },
|
|
135654
137264
|
|
|
137265
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_margin.js"
|
|
137266
|
+
/*!******************************************************************************!*\
|
|
137267
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/set_margin.js ***!
|
|
137268
|
+
\******************************************************************************/
|
|
137269
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
137270
|
+
|
|
137271
|
+
"use strict";
|
|
137272
|
+
|
|
137273
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
137274
|
+
exports.SetMarginTranspiler = void 0;
|
|
137275
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
137276
|
+
class SetMarginTranspiler {
|
|
137277
|
+
transpile(_node, _traversal) {
|
|
137278
|
+
return new chunk_1.Chunk(`throw new Error("SET MARGIN, not supported, transpiler");`);
|
|
137279
|
+
}
|
|
137280
|
+
}
|
|
137281
|
+
exports.SetMarginTranspiler = SetMarginTranspiler;
|
|
137282
|
+
//# sourceMappingURL=set_margin.js.map
|
|
137283
|
+
|
|
137284
|
+
/***/ },
|
|
137285
|
+
|
|
135655
137286
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_parameter.js"
|
|
135656
137287
|
/*!*********************************************************************************!*\
|
|
135657
137288
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/set_parameter.js ***!
|
|
@@ -135660,12 +137291,54 @@ exports.SetLocaleTranspiler = SetLocaleTranspiler;
|
|
|
135660
137291
|
|
|
135661
137292
|
"use strict";
|
|
135662
137293
|
|
|
137294
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
137295
|
+
if (k2 === undefined) k2 = k;
|
|
137296
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
137297
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
137298
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
137299
|
+
}
|
|
137300
|
+
Object.defineProperty(o, k2, desc);
|
|
137301
|
+
}) : (function(o, m, k, k2) {
|
|
137302
|
+
if (k2 === undefined) k2 = k;
|
|
137303
|
+
o[k2] = m[k];
|
|
137304
|
+
}));
|
|
137305
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
137306
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
137307
|
+
}) : function(o, v) {
|
|
137308
|
+
o["default"] = v;
|
|
137309
|
+
});
|
|
137310
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
137311
|
+
var ownKeys = function(o) {
|
|
137312
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
137313
|
+
var ar = [];
|
|
137314
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
137315
|
+
return ar;
|
|
137316
|
+
};
|
|
137317
|
+
return ownKeys(o);
|
|
137318
|
+
};
|
|
137319
|
+
return function (mod) {
|
|
137320
|
+
if (mod && mod.__esModule) return mod;
|
|
137321
|
+
var result = {};
|
|
137322
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
137323
|
+
__setModuleDefault(result, mod);
|
|
137324
|
+
return result;
|
|
137325
|
+
};
|
|
137326
|
+
})();
|
|
135663
137327
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
135664
137328
|
exports.SetParameterTranspiler = void 0;
|
|
137329
|
+
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
135665
137330
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
135666
137331
|
class SetParameterTranspiler {
|
|
135667
|
-
transpile(
|
|
135668
|
-
|
|
137332
|
+
transpile(node, traversal) {
|
|
137333
|
+
const sources = node.findDirectExpressions(abaplint.Expressions.Source);
|
|
137334
|
+
if (sources.length !== 2) {
|
|
137335
|
+
throw new Error("SetParameterTranspiler, unexpected node");
|
|
137336
|
+
}
|
|
137337
|
+
return new chunk_1.Chunk(`abap.statements.setParameter(`)
|
|
137338
|
+
.appendChunk(traversal.traverse(sources[0]))
|
|
137339
|
+
.appendString(",")
|
|
137340
|
+
.appendChunk(traversal.traverse(sources[1]))
|
|
137341
|
+
.appendString(");");
|
|
135669
137342
|
}
|
|
135670
137343
|
}
|
|
135671
137344
|
exports.SetParameterTranspiler = SetParameterTranspiler;
|
|
@@ -135694,6 +137367,27 @@ exports.SetPFStatusTranspiler = SetPFStatusTranspiler;
|
|
|
135694
137367
|
|
|
135695
137368
|
/***/ },
|
|
135696
137369
|
|
|
137370
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_property.js"
|
|
137371
|
+
/*!********************************************************************************!*\
|
|
137372
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/set_property.js ***!
|
|
137373
|
+
\********************************************************************************/
|
|
137374
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
137375
|
+
|
|
137376
|
+
"use strict";
|
|
137377
|
+
|
|
137378
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
137379
|
+
exports.SetPropertyTranspiler = void 0;
|
|
137380
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
137381
|
+
class SetPropertyTranspiler {
|
|
137382
|
+
transpile(_node, _traversal) {
|
|
137383
|
+
return new chunk_1.Chunk(`throw new Error("SET PROPERTY, not supported, transpiler");`);
|
|
137384
|
+
}
|
|
137385
|
+
}
|
|
137386
|
+
exports.SetPropertyTranspiler = SetPropertyTranspiler;
|
|
137387
|
+
//# sourceMappingURL=set_property.js.map
|
|
137388
|
+
|
|
137389
|
+
/***/ },
|
|
137390
|
+
|
|
135697
137391
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_screen.js"
|
|
135698
137392
|
/*!******************************************************************************!*\
|
|
135699
137393
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/set_screen.js ***!
|
|
@@ -135736,6 +137430,27 @@ exports.SetTitlebarTranspiler = SetTitlebarTranspiler;
|
|
|
135736
137430
|
|
|
135737
137431
|
/***/ },
|
|
135738
137432
|
|
|
137433
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/set_user_command.js"
|
|
137434
|
+
/*!************************************************************************************!*\
|
|
137435
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/set_user_command.js ***!
|
|
137436
|
+
\************************************************************************************/
|
|
137437
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
137438
|
+
|
|
137439
|
+
"use strict";
|
|
137440
|
+
|
|
137441
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
137442
|
+
exports.SetUserCommandTranspiler = void 0;
|
|
137443
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
137444
|
+
class SetUserCommandTranspiler {
|
|
137445
|
+
transpile(_node, _traversal) {
|
|
137446
|
+
return new chunk_1.Chunk(`throw new Error("SET USER-COMMAND, not supported, transpiler");`);
|
|
137447
|
+
}
|
|
137448
|
+
}
|
|
137449
|
+
exports.SetUserCommandTranspiler = SetUserCommandTranspiler;
|
|
137450
|
+
//# sourceMappingURL=set_user_command.js.map
|
|
137451
|
+
|
|
137452
|
+
/***/ },
|
|
137453
|
+
|
|
135739
137454
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/shift.js"
|
|
135740
137455
|
/*!*************************************************************************!*\
|
|
135741
137456
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/shift.js ***!
|
|
@@ -136243,6 +137958,27 @@ exports.SubtractTranspiler = SubtractTranspiler;
|
|
|
136243
137958
|
|
|
136244
137959
|
/***/ },
|
|
136245
137960
|
|
|
137961
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/subtract_corresponding.js"
|
|
137962
|
+
/*!******************************************************************************************!*\
|
|
137963
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/subtract_corresponding.js ***!
|
|
137964
|
+
\******************************************************************************************/
|
|
137965
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
137966
|
+
|
|
137967
|
+
"use strict";
|
|
137968
|
+
|
|
137969
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
137970
|
+
exports.SubtractCorrespondingTranspiler = void 0;
|
|
137971
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
137972
|
+
class SubtractCorrespondingTranspiler {
|
|
137973
|
+
transpile(_node, _traversal) {
|
|
137974
|
+
return new chunk_1.Chunk(`throw new Error("SUBTRACT-CORRESPONDING, not supported, transpiler");`);
|
|
137975
|
+
}
|
|
137976
|
+
}
|
|
137977
|
+
exports.SubtractCorrespondingTranspiler = SubtractCorrespondingTranspiler;
|
|
137978
|
+
//# sourceMappingURL=subtract_corresponding.js.map
|
|
137979
|
+
|
|
137980
|
+
/***/ },
|
|
137981
|
+
|
|
136246
137982
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/sum.js"
|
|
136247
137983
|
/*!***********************************************************************!*\
|
|
136248
137984
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/sum.js ***!
|
|
@@ -136264,6 +138000,70 @@ exports.SumTranspiler = SumTranspiler;
|
|
|
136264
138000
|
|
|
136265
138001
|
/***/ },
|
|
136266
138002
|
|
|
138003
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/summary.js"
|
|
138004
|
+
/*!***************************************************************************!*\
|
|
138005
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/summary.js ***!
|
|
138006
|
+
\***************************************************************************/
|
|
138007
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
138008
|
+
|
|
138009
|
+
"use strict";
|
|
138010
|
+
|
|
138011
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
138012
|
+
exports.SummaryTranspiler = void 0;
|
|
138013
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
138014
|
+
class SummaryTranspiler {
|
|
138015
|
+
transpile(_node, _traversal) {
|
|
138016
|
+
// obsolete short form of a list format setting (SUMMARY), it does not change the text of the list
|
|
138017
|
+
return new chunk_1.Chunk("");
|
|
138018
|
+
}
|
|
138019
|
+
}
|
|
138020
|
+
exports.SummaryTranspiler = SummaryTranspiler;
|
|
138021
|
+
//# sourceMappingURL=summary.js.map
|
|
138022
|
+
|
|
138023
|
+
/***/ },
|
|
138024
|
+
|
|
138025
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/supply.js"
|
|
138026
|
+
/*!**************************************************************************!*\
|
|
138027
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/supply.js ***!
|
|
138028
|
+
\**************************************************************************/
|
|
138029
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
138030
|
+
|
|
138031
|
+
"use strict";
|
|
138032
|
+
|
|
138033
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
138034
|
+
exports.SupplyTranspiler = void 0;
|
|
138035
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
138036
|
+
class SupplyTranspiler {
|
|
138037
|
+
transpile(_node, _traversal) {
|
|
138038
|
+
return new chunk_1.Chunk(`throw new Error("SUPPLY, not supported, transpiler");`);
|
|
138039
|
+
}
|
|
138040
|
+
}
|
|
138041
|
+
exports.SupplyTranspiler = SupplyTranspiler;
|
|
138042
|
+
//# sourceMappingURL=supply.js.map
|
|
138043
|
+
|
|
138044
|
+
/***/ },
|
|
138045
|
+
|
|
138046
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/suppress_dialog.js"
|
|
138047
|
+
/*!***********************************************************************************!*\
|
|
138048
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/suppress_dialog.js ***!
|
|
138049
|
+
\***********************************************************************************/
|
|
138050
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
138051
|
+
|
|
138052
|
+
"use strict";
|
|
138053
|
+
|
|
138054
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
138055
|
+
exports.SuppressDialogTranspiler = void 0;
|
|
138056
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
138057
|
+
class SuppressDialogTranspiler {
|
|
138058
|
+
transpile(_node, _traversal) {
|
|
138059
|
+
return new chunk_1.Chunk(`throw new Error("SUPPRESS DIALOG, not supported, transpiler");`);
|
|
138060
|
+
}
|
|
138061
|
+
}
|
|
138062
|
+
exports.SuppressDialogTranspiler = SuppressDialogTranspiler;
|
|
138063
|
+
//# sourceMappingURL=suppress_dialog.js.map
|
|
138064
|
+
|
|
138065
|
+
/***/ },
|
|
138066
|
+
|
|
136267
138067
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/syntax_check.js"
|
|
136268
138068
|
/*!********************************************************************************!*\
|
|
136269
138069
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/syntax_check.js ***!
|
|
@@ -136789,8 +138589,13 @@ class UpdateDatabaseTranspiler {
|
|
|
136789
138589
|
const sets = node.findAllExpressions(abaplint.Expressions.SQLFieldAndValue);
|
|
136790
138590
|
if (sets.length > 0) {
|
|
136791
138591
|
const s = [];
|
|
138592
|
+
let columns = undefined;
|
|
138593
|
+
const type = traversal.findTable(dbtab.concatTokens().toUpperCase())?.parseType(traversal.reg);
|
|
138594
|
+
if (type instanceof abaplint.BasicTypes.StructureType) {
|
|
138595
|
+
columns = new Set(type.getComponents().map(c => c.name.toLowerCase()));
|
|
138596
|
+
}
|
|
136792
138597
|
for (const set of sets) {
|
|
136793
|
-
s.push(new expressions_1.SQLFieldAndValueTranspiler().transpile(set, traversal).getCode());
|
|
138598
|
+
s.push(new expressions_1.SQLFieldAndValueTranspiler(columns, node.getFirstToken().getStart()).transpile(set, traversal).getCode());
|
|
136794
138599
|
}
|
|
136795
138600
|
options.push(`"set": [${s.join(",")}]`);
|
|
136796
138601
|
}
|
|
@@ -137041,6 +138846,48 @@ exports.WhileTranspiler = WhileTranspiler;
|
|
|
137041
138846
|
|
|
137042
138847
|
/***/ },
|
|
137043
138848
|
|
|
138849
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/window.js"
|
|
138850
|
+
/*!**************************************************************************!*\
|
|
138851
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/window.js ***!
|
|
138852
|
+
\**************************************************************************/
|
|
138853
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
138854
|
+
|
|
138855
|
+
"use strict";
|
|
138856
|
+
|
|
138857
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
138858
|
+
exports.WindowTranspiler = void 0;
|
|
138859
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
138860
|
+
class WindowTranspiler {
|
|
138861
|
+
transpile(_node, _traversal) {
|
|
138862
|
+
return new chunk_1.Chunk(`throw new Error("WINDOW, not supported, transpiler");`);
|
|
138863
|
+
}
|
|
138864
|
+
}
|
|
138865
|
+
exports.WindowTranspiler = WindowTranspiler;
|
|
138866
|
+
//# sourceMappingURL=window.js.map
|
|
138867
|
+
|
|
138868
|
+
/***/ },
|
|
138869
|
+
|
|
138870
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/with.js"
|
|
138871
|
+
/*!************************************************************************!*\
|
|
138872
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/statements/with.js ***!
|
|
138873
|
+
\************************************************************************/
|
|
138874
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
138875
|
+
|
|
138876
|
+
"use strict";
|
|
138877
|
+
|
|
138878
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
138879
|
+
exports.WithTranspiler = void 0;
|
|
138880
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
138881
|
+
class WithTranspiler {
|
|
138882
|
+
transpile(_node, _traversal) {
|
|
138883
|
+
return new chunk_1.Chunk(`throw new Error("WITH, not supported, transpiler");`);
|
|
138884
|
+
}
|
|
138885
|
+
}
|
|
138886
|
+
exports.WithTranspiler = WithTranspiler;
|
|
138887
|
+
//# sourceMappingURL=with.js.map
|
|
138888
|
+
|
|
138889
|
+
/***/ },
|
|
138890
|
+
|
|
137044
138891
|
/***/ "./node_modules/@abaplint/transpiler/build/src/statements/write.js"
|
|
137045
138892
|
/*!*************************************************************************!*\
|
|
137046
138893
|
!*** ./node_modules/@abaplint/transpiler/build/src/statements/write.js ***!
|
|
@@ -137570,6 +139417,27 @@ exports.CatchSystemExceptionsTranspiler = CatchSystemExceptionsTranspiler;
|
|
|
137570
139417
|
|
|
137571
139418
|
/***/ },
|
|
137572
139419
|
|
|
139420
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/chain.js"
|
|
139421
|
+
/*!*************************************************************************!*\
|
|
139422
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/structures/chain.js ***!
|
|
139423
|
+
\*************************************************************************/
|
|
139424
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
139425
|
+
|
|
139426
|
+
"use strict";
|
|
139427
|
+
|
|
139428
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
139429
|
+
exports.ChainTranspiler = void 0;
|
|
139430
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
139431
|
+
class ChainTranspiler {
|
|
139432
|
+
transpile(node, traversal) {
|
|
139433
|
+
return new chunk_1.Chunk().append(`throw new Error("CHAIN, not supported, transpiler");`, node, traversal);
|
|
139434
|
+
}
|
|
139435
|
+
}
|
|
139436
|
+
exports.ChainTranspiler = ChainTranspiler;
|
|
139437
|
+
//# sourceMappingURL=chain.js.map
|
|
139438
|
+
|
|
139439
|
+
/***/ },
|
|
139440
|
+
|
|
137573
139441
|
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/class_definition.js"
|
|
137574
139442
|
/*!************************************************************************************!*\
|
|
137575
139443
|
!*** ./node_modules/@abaplint/transpiler/build/src/structures/class_definition.js ***!
|
|
@@ -138452,17 +140320,21 @@ __exportStar(__webpack_require__(/*! ./at_first */ "./node_modules/@abaplint/tra
|
|
|
138452
140320
|
__exportStar(__webpack_require__(/*! ./at_last */ "./node_modules/@abaplint/transpiler/build/src/structures/at_last.js"), exports);
|
|
138453
140321
|
__exportStar(__webpack_require__(/*! ./case_type */ "./node_modules/@abaplint/transpiler/build/src/structures/case_type.js"), exports);
|
|
138454
140322
|
__exportStar(__webpack_require__(/*! ./case */ "./node_modules/@abaplint/transpiler/build/src/structures/case.js"), exports);
|
|
140323
|
+
__exportStar(__webpack_require__(/*! ./chain */ "./node_modules/@abaplint/transpiler/build/src/structures/chain.js"), exports);
|
|
138455
140324
|
__exportStar(__webpack_require__(/*! ./catch_system_exceptions */ "./node_modules/@abaplint/transpiler/build/src/structures/catch_system_exceptions.js"), exports);
|
|
138456
140325
|
__exportStar(__webpack_require__(/*! ./class_definition */ "./node_modules/@abaplint/transpiler/build/src/structures/class_definition.js"), exports);
|
|
138457
140326
|
__exportStar(__webpack_require__(/*! ./class_implementation */ "./node_modules/@abaplint/transpiler/build/src/structures/class_implementation.js"), exports);
|
|
138458
140327
|
__exportStar(__webpack_require__(/*! ./constants */ "./node_modules/@abaplint/transpiler/build/src/structures/constants.js"), exports);
|
|
138459
140328
|
__exportStar(__webpack_require__(/*! ./data */ "./node_modules/@abaplint/transpiler/build/src/structures/data.js"), exports);
|
|
140329
|
+
__exportStar(__webpack_require__(/*! ./statics */ "./node_modules/@abaplint/transpiler/build/src/structures/statics.js"), exports);
|
|
138460
140330
|
__exportStar(__webpack_require__(/*! ./define */ "./node_modules/@abaplint/transpiler/build/src/structures/define.js"), exports);
|
|
138461
140331
|
__exportStar(__webpack_require__(/*! ./do */ "./node_modules/@abaplint/transpiler/build/src/structures/do.js"), exports);
|
|
138462
140332
|
__exportStar(__webpack_require__(/*! ./exec_sql */ "./node_modules/@abaplint/transpiler/build/src/structures/exec_sql.js"), exports);
|
|
138463
140333
|
__exportStar(__webpack_require__(/*! ./function_module */ "./node_modules/@abaplint/transpiler/build/src/structures/function_module.js"), exports);
|
|
138464
140334
|
__exportStar(__webpack_require__(/*! ./interface */ "./node_modules/@abaplint/transpiler/build/src/structures/interface.js"), exports);
|
|
138465
140335
|
__exportStar(__webpack_require__(/*! ./loop */ "./node_modules/@abaplint/transpiler/build/src/structures/loop.js"), exports);
|
|
140336
|
+
__exportStar(__webpack_require__(/*! ./loop_extract */ "./node_modules/@abaplint/transpiler/build/src/structures/loop_extract.js"), exports);
|
|
140337
|
+
__exportStar(__webpack_require__(/*! ./provide */ "./node_modules/@abaplint/transpiler/build/src/structures/provide.js"), exports);
|
|
138466
140338
|
__exportStar(__webpack_require__(/*! ./module */ "./node_modules/@abaplint/transpiler/build/src/structures/module.js"), exports);
|
|
138467
140339
|
__exportStar(__webpack_require__(/*! ./select */ "./node_modules/@abaplint/transpiler/build/src/structures/select.js"), exports);
|
|
138468
140340
|
__exportStar(__webpack_require__(/*! ./method */ "./node_modules/@abaplint/transpiler/build/src/structures/method.js"), exports);
|
|
@@ -138471,6 +140343,7 @@ __exportStar(__webpack_require__(/*! ./type_enum */ "./node_modules/@abaplint/tr
|
|
|
138471
140343
|
__exportStar(__webpack_require__(/*! ./types */ "./node_modules/@abaplint/transpiler/build/src/structures/types.js"), exports);
|
|
138472
140344
|
__exportStar(__webpack_require__(/*! ./when */ "./node_modules/@abaplint/transpiler/build/src/structures/when.js"), exports);
|
|
138473
140345
|
__exportStar(__webpack_require__(/*! ./while */ "./node_modules/@abaplint/transpiler/build/src/structures/while.js"), exports);
|
|
140346
|
+
__exportStar(__webpack_require__(/*! ./with */ "./node_modules/@abaplint/transpiler/build/src/structures/with.js"), exports);
|
|
138474
140347
|
__exportStar(__webpack_require__(/*! ./form */ "./node_modules/@abaplint/transpiler/build/src/structures/form.js"), exports);
|
|
138475
140348
|
//# sourceMappingURL=index.js.map
|
|
138476
140349
|
|
|
@@ -138660,7 +140533,6 @@ const at_last_1 = __webpack_require__(/*! ./at_last */ "./node_modules/@abaplint
|
|
|
138660
140533
|
const unique_identifier_1 = __webpack_require__(/*! ../unique_identifier */ "./node_modules/@abaplint/transpiler/build/src/unique_identifier.js");
|
|
138661
140534
|
const statements_1 = __webpack_require__(/*! ../statements */ "./node_modules/@abaplint/transpiler/build/src/statements/index.js");
|
|
138662
140535
|
const at_1 = __webpack_require__(/*! ./at */ "./node_modules/@abaplint/transpiler/build/src/structures/at.js");
|
|
138663
|
-
const inline_1 = __webpack_require__(/*! ../inline */ "./node_modules/@abaplint/transpiler/build/src/inline.js");
|
|
138664
140536
|
class LoopTranspiler {
|
|
138665
140537
|
transpile(node, traversal) {
|
|
138666
140538
|
const ret = new chunk_1.Chunk();
|
|
@@ -138682,11 +140554,6 @@ class LoopTranspiler {
|
|
|
138682
140554
|
const hasAtLast = (node.findDirectStructure(abaplint.Structures.Body)
|
|
138683
140555
|
?.findDirectStructures(abaplint.Structures.Normal) || [])
|
|
138684
140556
|
.some(n => n.findDirectStructure(abaplint.Structures.AtLast) !== undefined);
|
|
138685
|
-
const scope = traversal.findCurrentScopeByToken(node.getFirstToken());
|
|
138686
|
-
if (scope?.getIdentifier().stype === abaplint.ScopeType.Program
|
|
138687
|
-
|| scope?.getIdentifier().stype === abaplint.ScopeType.SelectionEvent) {
|
|
138688
|
-
ret.appendString(inline_1.InlineDeclarations.buildDeclarations(node, traversal));
|
|
138689
|
-
}
|
|
138690
140557
|
if (hasAtLast) {
|
|
138691
140558
|
atLastFlag = unique_identifier_1.UniqueIdentifier.get();
|
|
138692
140559
|
ret.appendString(`let ${atLastFlag} = false;\n`);
|
|
@@ -138762,6 +140629,27 @@ exports.LoopTranspiler = LoopTranspiler;
|
|
|
138762
140629
|
|
|
138763
140630
|
/***/ },
|
|
138764
140631
|
|
|
140632
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/loop_extract.js"
|
|
140633
|
+
/*!********************************************************************************!*\
|
|
140634
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/structures/loop_extract.js ***!
|
|
140635
|
+
\********************************************************************************/
|
|
140636
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
140637
|
+
|
|
140638
|
+
"use strict";
|
|
140639
|
+
|
|
140640
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
140641
|
+
exports.LoopExtractTranspiler = void 0;
|
|
140642
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
140643
|
+
class LoopExtractTranspiler {
|
|
140644
|
+
transpile(node, traversal) {
|
|
140645
|
+
return new chunk_1.Chunk().append(`throw new Error("LOOP over extract, not supported, transpiler");`, node, traversal);
|
|
140646
|
+
}
|
|
140647
|
+
}
|
|
140648
|
+
exports.LoopExtractTranspiler = LoopExtractTranspiler;
|
|
140649
|
+
//# sourceMappingURL=loop_extract.js.map
|
|
140650
|
+
|
|
140651
|
+
/***/ },
|
|
140652
|
+
|
|
138765
140653
|
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/method.js"
|
|
138766
140654
|
/*!**************************************************************************!*\
|
|
138767
140655
|
!*** ./node_modules/@abaplint/transpiler/build/src/structures/method.js ***!
|
|
@@ -138847,6 +140735,27 @@ exports.ModuleTranspiler = ModuleTranspiler;
|
|
|
138847
140735
|
|
|
138848
140736
|
/***/ },
|
|
138849
140737
|
|
|
140738
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/provide.js"
|
|
140739
|
+
/*!***************************************************************************!*\
|
|
140740
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/structures/provide.js ***!
|
|
140741
|
+
\***************************************************************************/
|
|
140742
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
140743
|
+
|
|
140744
|
+
"use strict";
|
|
140745
|
+
|
|
140746
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
140747
|
+
exports.ProvideTranspiler = void 0;
|
|
140748
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
140749
|
+
class ProvideTranspiler {
|
|
140750
|
+
transpile(node, traversal) {
|
|
140751
|
+
return new chunk_1.Chunk().append(`throw new Error("PROVIDE, not supported, transpiler");`, node, traversal);
|
|
140752
|
+
}
|
|
140753
|
+
}
|
|
140754
|
+
exports.ProvideTranspiler = ProvideTranspiler;
|
|
140755
|
+
//# sourceMappingURL=provide.js.map
|
|
140756
|
+
|
|
140757
|
+
/***/ },
|
|
140758
|
+
|
|
138850
140759
|
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/select.js"
|
|
138851
140760
|
/*!**************************************************************************!*\
|
|
138852
140761
|
!*** ./node_modules/@abaplint/transpiler/build/src/structures/select.js ***!
|
|
@@ -138950,6 +140859,27 @@ exports.SelectTranspiler = SelectTranspiler;
|
|
|
138950
140859
|
|
|
138951
140860
|
/***/ },
|
|
138952
140861
|
|
|
140862
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/statics.js"
|
|
140863
|
+
/*!***************************************************************************!*\
|
|
140864
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/structures/statics.js ***!
|
|
140865
|
+
\***************************************************************************/
|
|
140866
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
140867
|
+
|
|
140868
|
+
"use strict";
|
|
140869
|
+
|
|
140870
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
140871
|
+
exports.StaticsTranspiler = void 0;
|
|
140872
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
140873
|
+
class StaticsTranspiler {
|
|
140874
|
+
transpile(node, traversal) {
|
|
140875
|
+
return new chunk_1.Chunk().append(`throw new Error("STATICS, not supported, transpiler");`, node, traversal);
|
|
140876
|
+
}
|
|
140877
|
+
}
|
|
140878
|
+
exports.StaticsTranspiler = StaticsTranspiler;
|
|
140879
|
+
//# sourceMappingURL=statics.js.map
|
|
140880
|
+
|
|
140881
|
+
/***/ },
|
|
140882
|
+
|
|
138953
140883
|
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/try.js"
|
|
138954
140884
|
/*!***********************************************************************!*\
|
|
138955
140885
|
!*** ./node_modules/@abaplint/transpiler/build/src/structures/try.js ***!
|
|
@@ -138992,30 +140922,296 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
138992
140922
|
};
|
|
138993
140923
|
})();
|
|
138994
140924
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
138995
|
-
exports.TryTranspiler = void 0;
|
|
140925
|
+
exports.TryTranspiler = void 0;
|
|
140926
|
+
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
140927
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
140928
|
+
class TryTranspiler {
|
|
140929
|
+
transpile(node, traversal) {
|
|
140930
|
+
const ret = new chunk_1.Chunk();
|
|
140931
|
+
const catches = node.findDirectStructures(abaplint.Structures.Catch);
|
|
140932
|
+
const cleanup = node.findDirectStructure(abaplint.Structures.Cleanup);
|
|
140933
|
+
// the CATCH blocks and the CLEANUP block become one javascript catch
|
|
140934
|
+
let handlerCode = this.buildHandlerCode(catches, cleanup, traversal);
|
|
140935
|
+
for (const c of node.getChildren()) {
|
|
140936
|
+
if (c.get() instanceof abaplint.Structures.Catch
|
|
140937
|
+
|| c.get() instanceof abaplint.Structures.Cleanup) {
|
|
140938
|
+
if (handlerCode) {
|
|
140939
|
+
ret.appendChunk(handlerCode);
|
|
140940
|
+
}
|
|
140941
|
+
handlerCode = undefined;
|
|
140942
|
+
}
|
|
140943
|
+
else if (c.get() instanceof abaplint.Statements.Try
|
|
140944
|
+
|| c.get() instanceof abaplint.Statements.EndTry) {
|
|
140945
|
+
if (catches.length === 0 && cleanup === undefined) {
|
|
140946
|
+
continue;
|
|
140947
|
+
}
|
|
140948
|
+
ret.appendChunk(traversal.traverse(c));
|
|
140949
|
+
}
|
|
140950
|
+
else {
|
|
140951
|
+
ret.appendChunk(traversal.traverse(c));
|
|
140952
|
+
}
|
|
140953
|
+
}
|
|
140954
|
+
return ret;
|
|
140955
|
+
}
|
|
140956
|
+
/////////////////////
|
|
140957
|
+
// Built as chunks, not as strings: the bodies keep their source mappings, so a stack frame, a
|
|
140958
|
+
// source map or a debugger can name an ABAP line inside a CATCH or CLEANUP block
|
|
140959
|
+
buildHandlerCode(nodes, cleanup, traversal) {
|
|
140960
|
+
if (nodes.length === 0 && cleanup === undefined) {
|
|
140961
|
+
return undefined;
|
|
140962
|
+
}
|
|
140963
|
+
const ret = new chunk_1.Chunk();
|
|
140964
|
+
ret.appendString(`} catch (e) {\n`);
|
|
140965
|
+
let first = true;
|
|
140966
|
+
for (const n of nodes) {
|
|
140967
|
+
const catchStatement = n.findDirectStatement(abaplint.Statements.Catch);
|
|
140968
|
+
if (catchStatement === undefined) {
|
|
140969
|
+
throw "TryTranspiler, unexpected structure";
|
|
140970
|
+
}
|
|
140971
|
+
const catchNames = catchStatement.findDirectExpressions(abaplint.Expressions.ClassName).map(e => traversal.lookupClassOrInterface(e.concatTokens(), e.getFirstToken()));
|
|
140972
|
+
if (first === false) {
|
|
140973
|
+
ret.appendString(" else ");
|
|
140974
|
+
}
|
|
140975
|
+
first = false;
|
|
140976
|
+
ret.append("if (" + catchNames?.map(n => "(" + n + " && e instanceof " + n + ")").join(" || ") + ") {\n", catchStatement, traversal);
|
|
140977
|
+
const intoNode = catchStatement.findExpressionAfterToken("INTO");
|
|
140978
|
+
if (intoNode) {
|
|
140979
|
+
ret.appendChunk(traversal.traverse(intoNode)).appendString(".set(e);\n");
|
|
140980
|
+
}
|
|
140981
|
+
const body = n.findDirectStructure(abaplint.Structures.Body);
|
|
140982
|
+
if (body) {
|
|
140983
|
+
ret.appendChunk(traversal.traverse(body));
|
|
140984
|
+
}
|
|
140985
|
+
ret.appendString("}");
|
|
140986
|
+
}
|
|
140987
|
+
// unhandled in this TRY-CATCH, or a javascript runtime error
|
|
140988
|
+
if (nodes.length > 0) {
|
|
140989
|
+
ret.appendString(` else {\n`);
|
|
140990
|
+
}
|
|
140991
|
+
this.appendCleanupCode(ret, cleanup, traversal);
|
|
140992
|
+
ret.appendString(`throw e;\n`);
|
|
140993
|
+
if (nodes.length > 0) {
|
|
140994
|
+
ret.appendString(`}\n`);
|
|
140995
|
+
}
|
|
140996
|
+
return ret;
|
|
140997
|
+
}
|
|
140998
|
+
/** CLEANUP runs when a class based exception leaves the TRY block, not for an exception raised
|
|
140999
|
+
* in a CATCH block of the same TRY, and not for javascript runtime errors */
|
|
141000
|
+
appendCleanupCode(ret, cleanup, traversal) {
|
|
141001
|
+
if (cleanup === undefined) {
|
|
141002
|
+
return;
|
|
141003
|
+
}
|
|
141004
|
+
const cxRoot = traversal.lookupClassOrInterface("CX_ROOT", cleanup.getFirstToken());
|
|
141005
|
+
const cleanupStatement = cleanup.findDirectStatement(abaplint.Statements.Cleanup);
|
|
141006
|
+
const head = `if (${cxRoot} && e instanceof ${cxRoot}) {\n`;
|
|
141007
|
+
if (cleanupStatement) {
|
|
141008
|
+
ret.append(head, cleanupStatement, traversal);
|
|
141009
|
+
}
|
|
141010
|
+
else {
|
|
141011
|
+
ret.appendString(head);
|
|
141012
|
+
}
|
|
141013
|
+
const intoNode = cleanupStatement?.findExpressionAfterToken("INTO");
|
|
141014
|
+
if (intoNode) {
|
|
141015
|
+
ret.appendChunk(traversal.traverse(intoNode)).appendString(".set(e);\n");
|
|
141016
|
+
}
|
|
141017
|
+
const body = cleanup.findDirectStructure(abaplint.Structures.Body);
|
|
141018
|
+
if (body) {
|
|
141019
|
+
ret.appendChunk(traversal.traverse(body));
|
|
141020
|
+
}
|
|
141021
|
+
ret.appendString(`}\n`);
|
|
141022
|
+
}
|
|
141023
|
+
}
|
|
141024
|
+
exports.TryTranspiler = TryTranspiler;
|
|
141025
|
+
//# sourceMappingURL=try.js.map
|
|
141026
|
+
|
|
141027
|
+
/***/ },
|
|
141028
|
+
|
|
141029
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/type_enum.js"
|
|
141030
|
+
/*!*****************************************************************************!*\
|
|
141031
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/structures/type_enum.js ***!
|
|
141032
|
+
\*****************************************************************************/
|
|
141033
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
141034
|
+
|
|
141035
|
+
"use strict";
|
|
141036
|
+
|
|
141037
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
141038
|
+
if (k2 === undefined) k2 = k;
|
|
141039
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
141040
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
141041
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
141042
|
+
}
|
|
141043
|
+
Object.defineProperty(o, k2, desc);
|
|
141044
|
+
}) : (function(o, m, k, k2) {
|
|
141045
|
+
if (k2 === undefined) k2 = k;
|
|
141046
|
+
o[k2] = m[k];
|
|
141047
|
+
}));
|
|
141048
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
141049
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
141050
|
+
}) : function(o, v) {
|
|
141051
|
+
o["default"] = v;
|
|
141052
|
+
});
|
|
141053
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
141054
|
+
var ownKeys = function(o) {
|
|
141055
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
141056
|
+
var ar = [];
|
|
141057
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
141058
|
+
return ar;
|
|
141059
|
+
};
|
|
141060
|
+
return ownKeys(o);
|
|
141061
|
+
};
|
|
141062
|
+
return function (mod) {
|
|
141063
|
+
if (mod && mod.__esModule) return mod;
|
|
141064
|
+
var result = {};
|
|
141065
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
141066
|
+
__setModuleDefault(result, mod);
|
|
141067
|
+
return result;
|
|
141068
|
+
};
|
|
141069
|
+
})();
|
|
141070
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
141071
|
+
exports.TypeEnumTranspiler = void 0;
|
|
141072
|
+
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
141073
|
+
const traversal_1 = __webpack_require__(/*! ../traversal */ "./node_modules/@abaplint/transpiler/build/src/traversal.js");
|
|
141074
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
141075
|
+
class TypeEnumTranspiler {
|
|
141076
|
+
transpile(node, _traversal) {
|
|
141077
|
+
const begin = node.findDirectStatement(abaplint.Statements.TypeEnumBegin);
|
|
141078
|
+
if (begin === undefined) {
|
|
141079
|
+
return new chunk_1.Chunk("");
|
|
141080
|
+
}
|
|
141081
|
+
const nsNames = begin.findAllExpressions(abaplint.Expressions.NamespaceSimpleName);
|
|
141082
|
+
if (nsNames.length < 2) {
|
|
141083
|
+
return new chunk_1.Chunk("");
|
|
141084
|
+
}
|
|
141085
|
+
const structureName = nsNames[1].concatTokens().toLowerCase();
|
|
141086
|
+
const values = [];
|
|
141087
|
+
for (const t of node.findDirectStatements(abaplint.Statements.Type)) {
|
|
141088
|
+
const name = t.findFirstExpression(abaplint.Expressions.NamespaceSimpleName);
|
|
141089
|
+
if (name) {
|
|
141090
|
+
values.push(name.concatTokens().toLowerCase());
|
|
141091
|
+
}
|
|
141092
|
+
}
|
|
141093
|
+
const fields = values.map(v => `"${v}": new abap.types.String()`).join(",\n");
|
|
141094
|
+
const expression = `new abap.types.Structure({
|
|
141095
|
+
${fields}})`;
|
|
141096
|
+
const constructor = _traversal.typeFactories?.register(expression) ?? expression;
|
|
141097
|
+
let ret = `let ${traversal_1.Traversal.prefixVariable(structureName)} = ${constructor};\n`;
|
|
141098
|
+
for (const v of values) {
|
|
141099
|
+
ret += `${traversal_1.Traversal.prefixVariable(structureName)}.get().${v}.set("${v.toUpperCase()}");\n`;
|
|
141100
|
+
}
|
|
141101
|
+
return new chunk_1.Chunk(ret);
|
|
141102
|
+
}
|
|
141103
|
+
}
|
|
141104
|
+
exports.TypeEnumTranspiler = TypeEnumTranspiler;
|
|
141105
|
+
//# sourceMappingURL=type_enum.js.map
|
|
141106
|
+
|
|
141107
|
+
/***/ },
|
|
141108
|
+
|
|
141109
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/types.js"
|
|
141110
|
+
/*!*************************************************************************!*\
|
|
141111
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/structures/types.js ***!
|
|
141112
|
+
\*************************************************************************/
|
|
141113
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
141114
|
+
|
|
141115
|
+
"use strict";
|
|
141116
|
+
|
|
141117
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
141118
|
+
exports.TypesTranspiler = void 0;
|
|
141119
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
141120
|
+
class TypesTranspiler {
|
|
141121
|
+
transpile(_node, _traversal) {
|
|
141122
|
+
return new chunk_1.Chunk("");
|
|
141123
|
+
}
|
|
141124
|
+
}
|
|
141125
|
+
exports.TypesTranspiler = TypesTranspiler;
|
|
141126
|
+
//# sourceMappingURL=types.js.map
|
|
141127
|
+
|
|
141128
|
+
/***/ },
|
|
141129
|
+
|
|
141130
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/when.js"
|
|
141131
|
+
/*!************************************************************************!*\
|
|
141132
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/structures/when.js ***!
|
|
141133
|
+
\************************************************************************/
|
|
141134
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
141135
|
+
|
|
141136
|
+
"use strict";
|
|
141137
|
+
|
|
141138
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
141139
|
+
exports.WhenTranspiler = void 0;
|
|
141140
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
141141
|
+
class WhenTranspiler {
|
|
141142
|
+
transpile(node, traversal) {
|
|
141143
|
+
const ret = new chunk_1.Chunk();
|
|
141144
|
+
for (const c of node.getChildren()) {
|
|
141145
|
+
ret.appendChunk(traversal.traverse(c));
|
|
141146
|
+
}
|
|
141147
|
+
ret.append("break;\n", node, traversal);
|
|
141148
|
+
return ret;
|
|
141149
|
+
}
|
|
141150
|
+
}
|
|
141151
|
+
exports.WhenTranspiler = WhenTranspiler;
|
|
141152
|
+
//# sourceMappingURL=when.js.map
|
|
141153
|
+
|
|
141154
|
+
/***/ },
|
|
141155
|
+
|
|
141156
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/while.js"
|
|
141157
|
+
/*!*************************************************************************!*\
|
|
141158
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/structures/while.js ***!
|
|
141159
|
+
\*************************************************************************/
|
|
141160
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
141161
|
+
|
|
141162
|
+
"use strict";
|
|
141163
|
+
|
|
141164
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
141165
|
+
if (k2 === undefined) k2 = k;
|
|
141166
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
141167
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
141168
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
141169
|
+
}
|
|
141170
|
+
Object.defineProperty(o, k2, desc);
|
|
141171
|
+
}) : (function(o, m, k, k2) {
|
|
141172
|
+
if (k2 === undefined) k2 = k;
|
|
141173
|
+
o[k2] = m[k];
|
|
141174
|
+
}));
|
|
141175
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
141176
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
141177
|
+
}) : function(o, v) {
|
|
141178
|
+
o["default"] = v;
|
|
141179
|
+
});
|
|
141180
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
141181
|
+
var ownKeys = function(o) {
|
|
141182
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
141183
|
+
var ar = [];
|
|
141184
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
141185
|
+
return ar;
|
|
141186
|
+
};
|
|
141187
|
+
return ownKeys(o);
|
|
141188
|
+
};
|
|
141189
|
+
return function (mod) {
|
|
141190
|
+
if (mod && mod.__esModule) return mod;
|
|
141191
|
+
var result = {};
|
|
141192
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
141193
|
+
__setModuleDefault(result, mod);
|
|
141194
|
+
return result;
|
|
141195
|
+
};
|
|
141196
|
+
})();
|
|
141197
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
141198
|
+
exports.WhileTranspiler = void 0;
|
|
138996
141199
|
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
138997
141200
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
138998
|
-
|
|
141201
|
+
const statements_1 = __webpack_require__(/*! ../statements */ "./node_modules/@abaplint/transpiler/build/src/statements/index.js");
|
|
141202
|
+
const unique_identifier_1 = __webpack_require__(/*! ../unique_identifier */ "./node_modules/@abaplint/transpiler/build/src/unique_identifier.js");
|
|
141203
|
+
class WhileTranspiler {
|
|
138999
141204
|
transpile(node, traversal) {
|
|
139000
141205
|
const ret = new chunk_1.Chunk();
|
|
139001
|
-
const
|
|
139002
|
-
const cleanup = node.findDirectStructure(abaplint.Structures.Cleanup);
|
|
139003
|
-
// the CATCH blocks and the CLEANUP block become one javascript catch
|
|
139004
|
-
let handlerCode = this.buildHandlerCode(catches, cleanup, traversal);
|
|
141206
|
+
const syIndexBackup = unique_identifier_1.UniqueIdentifier.getIndexBackup();
|
|
139005
141207
|
for (const c of node.getChildren()) {
|
|
139006
|
-
if (c.get() instanceof abaplint.
|
|
139007
|
-
|
|
139008
|
-
|
|
139009
|
-
|
|
139010
|
-
}
|
|
139011
|
-
handlerCode = undefined;
|
|
141208
|
+
if (c instanceof abaplint.Nodes.StatementNode && c.get() instanceof abaplint.Statements.While) {
|
|
141209
|
+
traversal.registerDoOrWhileIndexBackup(c, syIndexBackup);
|
|
141210
|
+
ret.appendChunk(new statements_1.WhileTranspiler(syIndexBackup).transpile(c, traversal).ensureStartMapping(c, traversal));
|
|
141211
|
+
ret.appendString("\n");
|
|
139012
141212
|
}
|
|
139013
|
-
else if (c.get() instanceof abaplint.Statements.
|
|
139014
|
-
|
|
139015
|
-
if (catches.length === 0 && cleanup === undefined) {
|
|
139016
|
-
continue;
|
|
139017
|
-
}
|
|
139018
|
-
ret.appendChunk(traversal.traverse(c));
|
|
141213
|
+
else if (c instanceof abaplint.Nodes.StatementNode && c.get() instanceof abaplint.Statements.EndWhile) {
|
|
141214
|
+
ret.appendChunk(new statements_1.EndWhileTranspiler(syIndexBackup).transpile(c, traversal));
|
|
139019
141215
|
}
|
|
139020
141216
|
else {
|
|
139021
141217
|
ret.appendChunk(traversal.traverse(c));
|
|
@@ -139023,258 +141219,30 @@ class TryTranspiler {
|
|
|
139023
141219
|
}
|
|
139024
141220
|
return ret;
|
|
139025
141221
|
}
|
|
139026
|
-
/////////////////////
|
|
139027
|
-
buildHandlerCode(nodes, cleanup, traversal) {
|
|
139028
|
-
let ret = "";
|
|
139029
|
-
let first = true;
|
|
139030
|
-
if (nodes.length === 0 && cleanup === undefined) {
|
|
139031
|
-
return undefined;
|
|
139032
|
-
}
|
|
139033
|
-
ret += `} catch (e) {\n`;
|
|
139034
|
-
for (const n of nodes) {
|
|
139035
|
-
const catchStatement = n.findDirectStatement(abaplint.Statements.Catch);
|
|
139036
|
-
if (catchStatement === undefined) {
|
|
139037
|
-
throw "TryTranspiler, unexpected structure";
|
|
139038
|
-
}
|
|
139039
|
-
const catchNames = catchStatement.findDirectExpressions(abaplint.Expressions.ClassName).map(e => traversal.lookupClassOrInterface(e.concatTokens(), e.getFirstToken()));
|
|
139040
|
-
ret += first ? "" : " else ";
|
|
139041
|
-
first = false;
|
|
139042
|
-
ret += "if (" + catchNames?.map(n => "(" + n + " && e instanceof " + n + ")").join(" || ") + ") {\n";
|
|
139043
|
-
const intoNode = catchStatement.findExpressionAfterToken("INTO");
|
|
139044
|
-
if (intoNode) {
|
|
139045
|
-
ret += traversal.traverse(intoNode).getCode() + ".set(e);\n";
|
|
139046
|
-
}
|
|
139047
|
-
const body = n.findDirectStructure(abaplint.Structures.Body);
|
|
139048
|
-
if (body) {
|
|
139049
|
-
ret += traversal.traverse(body).getCode();
|
|
139050
|
-
}
|
|
139051
|
-
ret += "}";
|
|
139052
|
-
}
|
|
139053
|
-
// unhandled in this TRY-CATCH, or a javascript runtime error
|
|
139054
|
-
const unhandled = this.buildCleanupCode(cleanup, traversal) + `throw e;\n`;
|
|
139055
|
-
ret += nodes.length > 0 ? ` else {\n` + unhandled + `}\n` : unhandled;
|
|
139056
|
-
return new chunk_1.Chunk(ret);
|
|
139057
|
-
}
|
|
139058
|
-
/** CLEANUP runs when a class based exception leaves the TRY block, not for an exception raised
|
|
139059
|
-
* in a CATCH block of the same TRY, and not for javascript runtime errors */
|
|
139060
|
-
buildCleanupCode(cleanup, traversal) {
|
|
139061
|
-
if (cleanup === undefined) {
|
|
139062
|
-
return "";
|
|
139063
|
-
}
|
|
139064
|
-
const cxRoot = traversal.lookupClassOrInterface("CX_ROOT", cleanup.getFirstToken());
|
|
139065
|
-
let ret = `if (${cxRoot} && e instanceof ${cxRoot}) {\n`;
|
|
139066
|
-
const intoNode = cleanup.findDirectStatement(abaplint.Statements.Cleanup)?.findExpressionAfterToken("INTO");
|
|
139067
|
-
if (intoNode) {
|
|
139068
|
-
ret += traversal.traverse(intoNode).getCode() + ".set(e);\n";
|
|
139069
|
-
}
|
|
139070
|
-
const body = cleanup.findDirectStructure(abaplint.Structures.Body);
|
|
139071
|
-
if (body) {
|
|
139072
|
-
ret += traversal.traverse(body).getCode();
|
|
139073
|
-
}
|
|
139074
|
-
return ret + `}\n`;
|
|
139075
|
-
}
|
|
139076
|
-
}
|
|
139077
|
-
exports.TryTranspiler = TryTranspiler;
|
|
139078
|
-
//# sourceMappingURL=try.js.map
|
|
139079
|
-
|
|
139080
|
-
/***/ },
|
|
139081
|
-
|
|
139082
|
-
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/type_enum.js"
|
|
139083
|
-
/*!*****************************************************************************!*\
|
|
139084
|
-
!*** ./node_modules/@abaplint/transpiler/build/src/structures/type_enum.js ***!
|
|
139085
|
-
\*****************************************************************************/
|
|
139086
|
-
(__unused_webpack_module, exports, __webpack_require__) {
|
|
139087
|
-
|
|
139088
|
-
"use strict";
|
|
139089
|
-
|
|
139090
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
139091
|
-
if (k2 === undefined) k2 = k;
|
|
139092
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
139093
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
139094
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
139095
|
-
}
|
|
139096
|
-
Object.defineProperty(o, k2, desc);
|
|
139097
|
-
}) : (function(o, m, k, k2) {
|
|
139098
|
-
if (k2 === undefined) k2 = k;
|
|
139099
|
-
o[k2] = m[k];
|
|
139100
|
-
}));
|
|
139101
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
139102
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
139103
|
-
}) : function(o, v) {
|
|
139104
|
-
o["default"] = v;
|
|
139105
|
-
});
|
|
139106
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
139107
|
-
var ownKeys = function(o) {
|
|
139108
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
139109
|
-
var ar = [];
|
|
139110
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
139111
|
-
return ar;
|
|
139112
|
-
};
|
|
139113
|
-
return ownKeys(o);
|
|
139114
|
-
};
|
|
139115
|
-
return function (mod) {
|
|
139116
|
-
if (mod && mod.__esModule) return mod;
|
|
139117
|
-
var result = {};
|
|
139118
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
139119
|
-
__setModuleDefault(result, mod);
|
|
139120
|
-
return result;
|
|
139121
|
-
};
|
|
139122
|
-
})();
|
|
139123
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
139124
|
-
exports.TypeEnumTranspiler = void 0;
|
|
139125
|
-
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
139126
|
-
const traversal_1 = __webpack_require__(/*! ../traversal */ "./node_modules/@abaplint/transpiler/build/src/traversal.js");
|
|
139127
|
-
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
139128
|
-
class TypeEnumTranspiler {
|
|
139129
|
-
transpile(node, _traversal) {
|
|
139130
|
-
const begin = node.findDirectStatement(abaplint.Statements.TypeEnumBegin);
|
|
139131
|
-
if (begin === undefined) {
|
|
139132
|
-
return new chunk_1.Chunk("");
|
|
139133
|
-
}
|
|
139134
|
-
const nsNames = begin.findAllExpressions(abaplint.Expressions.NamespaceSimpleName);
|
|
139135
|
-
if (nsNames.length < 2) {
|
|
139136
|
-
return new chunk_1.Chunk("");
|
|
139137
|
-
}
|
|
139138
|
-
const structureName = nsNames[1].concatTokens().toLowerCase();
|
|
139139
|
-
const values = [];
|
|
139140
|
-
for (const t of node.findDirectStatements(abaplint.Statements.Type)) {
|
|
139141
|
-
const name = t.findFirstExpression(abaplint.Expressions.NamespaceSimpleName);
|
|
139142
|
-
if (name) {
|
|
139143
|
-
values.push(name.concatTokens().toLowerCase());
|
|
139144
|
-
}
|
|
139145
|
-
}
|
|
139146
|
-
const fields = values.map(v => `"${v}": new abap.types.String()`).join(",\n");
|
|
139147
|
-
const expression = `new abap.types.Structure({
|
|
139148
|
-
${fields}})`;
|
|
139149
|
-
const constructor = _traversal.typeFactories?.register(expression) ?? expression;
|
|
139150
|
-
let ret = `let ${traversal_1.Traversal.prefixVariable(structureName)} = ${constructor};\n`;
|
|
139151
|
-
for (const v of values) {
|
|
139152
|
-
ret += `${traversal_1.Traversal.prefixVariable(structureName)}.get().${v}.set("${v.toUpperCase()}");\n`;
|
|
139153
|
-
}
|
|
139154
|
-
return new chunk_1.Chunk(ret);
|
|
139155
|
-
}
|
|
139156
|
-
}
|
|
139157
|
-
exports.TypeEnumTranspiler = TypeEnumTranspiler;
|
|
139158
|
-
//# sourceMappingURL=type_enum.js.map
|
|
139159
|
-
|
|
139160
|
-
/***/ },
|
|
139161
|
-
|
|
139162
|
-
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/types.js"
|
|
139163
|
-
/*!*************************************************************************!*\
|
|
139164
|
-
!*** ./node_modules/@abaplint/transpiler/build/src/structures/types.js ***!
|
|
139165
|
-
\*************************************************************************/
|
|
139166
|
-
(__unused_webpack_module, exports, __webpack_require__) {
|
|
139167
|
-
|
|
139168
|
-
"use strict";
|
|
139169
|
-
|
|
139170
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
139171
|
-
exports.TypesTranspiler = void 0;
|
|
139172
|
-
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
139173
|
-
class TypesTranspiler {
|
|
139174
|
-
transpile(_node, _traversal) {
|
|
139175
|
-
return new chunk_1.Chunk("");
|
|
139176
|
-
}
|
|
139177
141222
|
}
|
|
139178
|
-
exports.
|
|
139179
|
-
//# sourceMappingURL=
|
|
141223
|
+
exports.WhileTranspiler = WhileTranspiler;
|
|
141224
|
+
//# sourceMappingURL=while.js.map
|
|
139180
141225
|
|
|
139181
141226
|
/***/ },
|
|
139182
141227
|
|
|
139183
|
-
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/
|
|
141228
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/with.js"
|
|
139184
141229
|
/*!************************************************************************!*\
|
|
139185
|
-
!*** ./node_modules/@abaplint/transpiler/build/src/structures/
|
|
141230
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/structures/with.js ***!
|
|
139186
141231
|
\************************************************************************/
|
|
139187
141232
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
139188
141233
|
|
|
139189
141234
|
"use strict";
|
|
139190
141235
|
|
|
139191
141236
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
139192
|
-
exports.
|
|
139193
|
-
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
139194
|
-
class WhenTranspiler {
|
|
139195
|
-
transpile(node, traversal) {
|
|
139196
|
-
const ret = new chunk_1.Chunk();
|
|
139197
|
-
for (const c of node.getChildren()) {
|
|
139198
|
-
ret.appendChunk(traversal.traverse(c));
|
|
139199
|
-
}
|
|
139200
|
-
ret.append("break;\n", node, traversal);
|
|
139201
|
-
return ret;
|
|
139202
|
-
}
|
|
139203
|
-
}
|
|
139204
|
-
exports.WhenTranspiler = WhenTranspiler;
|
|
139205
|
-
//# sourceMappingURL=when.js.map
|
|
139206
|
-
|
|
139207
|
-
/***/ },
|
|
139208
|
-
|
|
139209
|
-
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/while.js"
|
|
139210
|
-
/*!*************************************************************************!*\
|
|
139211
|
-
!*** ./node_modules/@abaplint/transpiler/build/src/structures/while.js ***!
|
|
139212
|
-
\*************************************************************************/
|
|
139213
|
-
(__unused_webpack_module, exports, __webpack_require__) {
|
|
139214
|
-
|
|
139215
|
-
"use strict";
|
|
139216
|
-
|
|
139217
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
139218
|
-
if (k2 === undefined) k2 = k;
|
|
139219
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
139220
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
139221
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
139222
|
-
}
|
|
139223
|
-
Object.defineProperty(o, k2, desc);
|
|
139224
|
-
}) : (function(o, m, k, k2) {
|
|
139225
|
-
if (k2 === undefined) k2 = k;
|
|
139226
|
-
o[k2] = m[k];
|
|
139227
|
-
}));
|
|
139228
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
139229
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
139230
|
-
}) : function(o, v) {
|
|
139231
|
-
o["default"] = v;
|
|
139232
|
-
});
|
|
139233
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
139234
|
-
var ownKeys = function(o) {
|
|
139235
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
139236
|
-
var ar = [];
|
|
139237
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
139238
|
-
return ar;
|
|
139239
|
-
};
|
|
139240
|
-
return ownKeys(o);
|
|
139241
|
-
};
|
|
139242
|
-
return function (mod) {
|
|
139243
|
-
if (mod && mod.__esModule) return mod;
|
|
139244
|
-
var result = {};
|
|
139245
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
139246
|
-
__setModuleDefault(result, mod);
|
|
139247
|
-
return result;
|
|
139248
|
-
};
|
|
139249
|
-
})();
|
|
139250
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
139251
|
-
exports.WhileTranspiler = void 0;
|
|
139252
|
-
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
141237
|
+
exports.WithTranspiler = void 0;
|
|
139253
141238
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
139254
|
-
|
|
139255
|
-
const unique_identifier_1 = __webpack_require__(/*! ../unique_identifier */ "./node_modules/@abaplint/transpiler/build/src/unique_identifier.js");
|
|
139256
|
-
class WhileTranspiler {
|
|
141239
|
+
class WithTranspiler {
|
|
139257
141240
|
transpile(node, traversal) {
|
|
139258
|
-
|
|
139259
|
-
const syIndexBackup = unique_identifier_1.UniqueIdentifier.getIndexBackup();
|
|
139260
|
-
for (const c of node.getChildren()) {
|
|
139261
|
-
if (c instanceof abaplint.Nodes.StatementNode && c.get() instanceof abaplint.Statements.While) {
|
|
139262
|
-
traversal.registerDoOrWhileIndexBackup(c, syIndexBackup);
|
|
139263
|
-
ret.appendChunk(new statements_1.WhileTranspiler(syIndexBackup).transpile(c, traversal).ensureStartMapping(c, traversal));
|
|
139264
|
-
ret.appendString("\n");
|
|
139265
|
-
}
|
|
139266
|
-
else if (c instanceof abaplint.Nodes.StatementNode && c.get() instanceof abaplint.Statements.EndWhile) {
|
|
139267
|
-
ret.appendChunk(new statements_1.EndWhileTranspiler(syIndexBackup).transpile(c, traversal));
|
|
139268
|
-
}
|
|
139269
|
-
else {
|
|
139270
|
-
ret.appendChunk(traversal.traverse(c));
|
|
139271
|
-
}
|
|
139272
|
-
}
|
|
139273
|
-
return ret;
|
|
141241
|
+
return new chunk_1.Chunk().append(`throw new Error("WITH, not supported, transpiler");`, node, traversal);
|
|
139274
141242
|
}
|
|
139275
141243
|
}
|
|
139276
|
-
exports.
|
|
139277
|
-
//# sourceMappingURL=
|
|
141244
|
+
exports.WithTranspiler = WithTranspiler;
|
|
141245
|
+
//# sourceMappingURL=with.js.map
|
|
139278
141246
|
|
|
139279
141247
|
/***/ },
|
|
139280
141248
|
|
|
@@ -139718,6 +141686,7 @@ const chunk_1 = __webpack_require__(/*! ./chunk */ "./node_modules/@abaplint/tra
|
|
|
139718
141686
|
const expressions_1 = __webpack_require__(/*! ./expressions */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
|
|
139719
141687
|
const keywords_1 = __webpack_require__(/*! ./keywords */ "./node_modules/@abaplint/transpiler/build/src/keywords.js");
|
|
139720
141688
|
const transpile_types_1 = __webpack_require__(/*! ./transpile_types */ "./node_modules/@abaplint/transpiler/build/src/transpile_types.js");
|
|
141689
|
+
const inline_1 = __webpack_require__(/*! ./inline */ "./node_modules/@abaplint/transpiler/build/src/inline.js");
|
|
139721
141690
|
/** the references of one scope, by where they start: built once per scope,
|
|
139722
141691
|
* so finding the reference at a token no longer walks every reference of
|
|
139723
141692
|
* the scope for every token, which made a long method quadratic */
|
|
@@ -140077,8 +142046,10 @@ class Traversal {
|
|
|
140077
142046
|
}
|
|
140078
142047
|
const methodDefinitions = def.getMethodDefinitions();
|
|
140079
142048
|
if (methodDefinitions === undefined) {
|
|
140080
|
-
//
|
|
140081
|
-
|
|
142049
|
+
// abaplint registers a definition before reading it, and stops reading at the first thing it cannot find
|
|
142050
|
+
const superClass = def.getSuperClass();
|
|
142051
|
+
const reason = superClass ? `its super class ${superClass} is not known` : "a super class, interface or type it names is not known";
|
|
142052
|
+
throw new Error(`${this.getFilename()}: the definition of ${def.getName()} could not be read: ${reason}`);
|
|
140082
142053
|
}
|
|
140083
142054
|
for (const m of methodDefinitions.getAll()) {
|
|
140084
142055
|
methods.push(this.buildMethod(m.getName(), m, m.getVisibility()));
|
|
@@ -140829,7 +142800,12 @@ this.INTERNAL_ID = abap.internalIdCounter++;\n`;
|
|
|
140829
142800
|
* and are initialized once, also when the block is a loop */
|
|
140830
142801
|
traverseProcedureLevel(node) {
|
|
140831
142802
|
const ret = new chunk_1.Chunk();
|
|
142803
|
+
// FORMs, methods and function modules declare their own inline declarations
|
|
142804
|
+
const programLevel = inline_1.InlineDeclarations.isProgramLevelScope(this.findCurrentScopeByToken(node.getFirstToken()));
|
|
140832
142805
|
for (const c of node.getChildren()) {
|
|
142806
|
+
if (programLevel === true) {
|
|
142807
|
+
ret.appendString(inline_1.InlineDeclarations.buildDeclarations(c, this, true));
|
|
142808
|
+
}
|
|
140833
142809
|
if (c instanceof abaplint.Nodes.StructureNode && Traversal.isDeclaration(c) === false) {
|
|
140834
142810
|
ret.appendChunk(this.declareNestedEarly(c));
|
|
140835
142811
|
this.blockDepth++;
|
|
@@ -140939,6 +142915,8 @@ this.INTERNAL_ID = abap.internalIdCounter++;\n`;
|
|
|
140939
142915
|
continue;
|
|
140940
142916
|
}
|
|
140941
142917
|
for (const n of c.getChildren()) {
|
|
142918
|
+
// inline declarations are program global like DATA, so they stay on module level too
|
|
142919
|
+
ret.appendString(inline_1.InlineDeclarations.buildDeclarations(n, this, true));
|
|
140942
142920
|
if (Traversal.isProgramLevelDeclaration(n)) {
|
|
140943
142921
|
ret.appendChunk(this.traverse(n));
|
|
140944
142922
|
}
|
|
@@ -141672,6 +143650,7 @@ exports.config = {
|
|
|
141672
143650
|
// hmm this ^ is okay? since lines will be prefixed with "abap.builtin"?
|
|
141673
143651
|
class Validation {
|
|
141674
143652
|
options;
|
|
143653
|
+
scopes = new Map();
|
|
141675
143654
|
constructor(options) {
|
|
141676
143655
|
this.options = options;
|
|
141677
143656
|
}
|
|
@@ -141702,7 +143681,30 @@ class Validation {
|
|
|
141702
143681
|
const conf = new core_1.Config(JSON.stringify(exports.config));
|
|
141703
143682
|
reg.setConfig(conf);
|
|
141704
143683
|
const issues = reg.findIssues();
|
|
141705
|
-
return issues;
|
|
143684
|
+
return issues.filter(i => i.getKey() !== "ambiguous_statement" || this.isInternalModify(reg, i) === false);
|
|
143685
|
+
}
|
|
143686
|
+
/** "MODIFY itab FROM wa" and "MODIFY itab" are not ambiguous when itab is an internal table */
|
|
143687
|
+
isInternalModify(reg, issue) {
|
|
143688
|
+
const file = reg.getFileByName(issue.getFilename());
|
|
143689
|
+
const obj = file ? reg.findObjectForFile(file) : undefined;
|
|
143690
|
+
if (!(obj instanceof core_1.ABAPObject)) {
|
|
143691
|
+
return false;
|
|
143692
|
+
}
|
|
143693
|
+
const statement = obj.getABAPFileByName(issue.getFilename())?.getStatements()
|
|
143694
|
+
.find(s => s.getStart().equals(issue.getStart()));
|
|
143695
|
+
const token = statement?.getTokens()[1];
|
|
143696
|
+
if (statement === undefined || token === undefined
|
|
143697
|
+
|| statement.getFirstToken().getStr().toUpperCase() !== "MODIFY"
|
|
143698
|
+
|| token.getStr().toUpperCase() === "TABLE") {
|
|
143699
|
+
return false;
|
|
143700
|
+
}
|
|
143701
|
+
let spaghetti = this.scopes.get(obj);
|
|
143702
|
+
if (spaghetti === undefined) {
|
|
143703
|
+
spaghetti = new core_1.SyntaxLogic(reg, obj).run().spaghetti;
|
|
143704
|
+
this.scopes.set(obj, spaghetti);
|
|
143705
|
+
}
|
|
143706
|
+
const variable = spaghetti.lookupPosition(token.getStart(), issue.getFilename())?.findVariable(token.getStr());
|
|
143707
|
+
return variable?.getType() instanceof core_1.BasicTypes.TableType;
|
|
141706
143708
|
}
|
|
141707
143709
|
}
|
|
141708
143710
|
exports.Validation = Validation;
|