@abaplint/cli 2.113.166 → 2.113.167
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/cli.js +35 -10
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -5852,6 +5852,7 @@ __exportStar(__webpack_require__(/*! ./compare */ "./node_modules/@abaplint/core
|
|
|
5852
5852
|
__exportStar(__webpack_require__(/*! ./component_chain_simple */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/component_chain_simple.js"), exports);
|
|
5853
5853
|
__exportStar(__webpack_require__(/*! ./component_chain */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/component_chain.js"), exports);
|
|
5854
5854
|
__exportStar(__webpack_require__(/*! ./component_compare_simple */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/component_compare_simple.js"), exports);
|
|
5855
|
+
__exportStar(__webpack_require__(/*! ./value_base */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/value_base.js"), exports);
|
|
5855
5856
|
__exportStar(__webpack_require__(/*! ./component_compare_single */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/component_compare_single.js"), exports);
|
|
5856
5857
|
__exportStar(__webpack_require__(/*! ./component_compare */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/component_compare.js"), exports);
|
|
5857
5858
|
__exportStar(__webpack_require__(/*! ./component_cond_sub */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/component_cond_sub.js"), exports);
|
|
@@ -9633,6 +9634,28 @@ exports.Value = Value;
|
|
|
9633
9634
|
|
|
9634
9635
|
/***/ }),
|
|
9635
9636
|
|
|
9637
|
+
/***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/value_base.js":
|
|
9638
|
+
/*!*******************************************************************************************!*\
|
|
9639
|
+
!*** ./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/value_base.js ***!
|
|
9640
|
+
\*******************************************************************************************/
|
|
9641
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
9642
|
+
|
|
9643
|
+
"use strict";
|
|
9644
|
+
|
|
9645
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9646
|
+
exports.ValueBase = void 0;
|
|
9647
|
+
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
9648
|
+
const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
9649
|
+
class ValueBase extends combi_1.Expression {
|
|
9650
|
+
getRunnable() {
|
|
9651
|
+
return (0, combi_1.seq)("BASE", _1.Source);
|
|
9652
|
+
}
|
|
9653
|
+
}
|
|
9654
|
+
exports.ValueBase = ValueBase;
|
|
9655
|
+
//# sourceMappingURL=value_base.js.map
|
|
9656
|
+
|
|
9657
|
+
/***/ }),
|
|
9658
|
+
|
|
9636
9659
|
/***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/value_body.js":
|
|
9637
9660
|
/*!*******************************************************************************************!*\
|
|
9638
9661
|
!*** ./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/value_body.js ***!
|
|
@@ -9648,8 +9671,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
|
|
|
9648
9671
|
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
9649
9672
|
class ValueBody extends combi_1.Expression {
|
|
9650
9673
|
getRunnable() {
|
|
9651
|
-
const
|
|
9652
|
-
const strucOrTab = (0, combi_1.seq)((0, combi_1.optPrio)(_1.Let), (0, combi_1.optPrio)(base), (0, combi_1.star)(_1.For), (0, combi_1.plusPrio)((0, combi_1.altPrio)(_1.FieldAssignment, _1.ValueBodyLine)));
|
|
9674
|
+
const strucOrTab = (0, combi_1.seq)((0, combi_1.optPrio)(_1.Let), (0, combi_1.optPrio)(_1.ValueBase), (0, combi_1.star)(_1.For), (0, combi_1.plusPrio)((0, combi_1.altPrio)(_1.FieldAssignment, _1.ValueBodyLine)));
|
|
9653
9675
|
const tabdef = (0, combi_1.ver)(version_1.Version.v740sp08, (0, combi_1.altPrio)("OPTIONAL", (0, combi_1.seq)("DEFAULT", _1.Source)));
|
|
9654
9676
|
return (0, combi_1.optPrio)((0, combi_1.altPrio)(strucOrTab, (0, combi_1.seq)(_1.Source, (0, combi_1.optPrio)(tabdef))));
|
|
9655
9677
|
}
|
|
@@ -10251,7 +10273,7 @@ class Append {
|
|
|
10251
10273
|
const fromIndex = (0, combi_1.seq)("FROM", expressions_1.Source);
|
|
10252
10274
|
const toIndex = (0, combi_1.seq)("TO", expressions_1.Source);
|
|
10253
10275
|
const toTarget = (0, combi_1.seq)("TO", expressions_1.Target);
|
|
10254
|
-
const src = (0, combi_1.alt)(expressions_1.SimpleSource4, (0, combi_1.ver)(version_1.Version.v740sp02, expressions_1.Source));
|
|
10276
|
+
const src = (0, combi_1.alt)(expressions_1.SimpleSource4, (0, combi_1.ver)(version_1.Version.v740sp02, expressions_1.Source, version_1.Version.OpenABAP));
|
|
10255
10277
|
return (0, combi_1.seq)("APPEND", (0, combi_1.altPrio)("INITIAL LINE", (0, combi_1.seq)((0, combi_1.optPrio)("LINES OF"), src)), (0, combi_1.optPrio)(fromIndex), (0, combi_1.opt)((0, combi_1.alt)((0, combi_1.seq)(toIndex, toTarget), toTarget)), (0, combi_1.opt)((0, combi_1.altPrio)(assigning, reference)), (0, combi_1.optPrio)("CASTING"), (0, combi_1.optPrio)(sorted));
|
|
10256
10278
|
}
|
|
10257
10279
|
}
|
|
@@ -14653,7 +14675,7 @@ class InsertInternal {
|
|
|
14653
14675
|
const fromTo = (0, combi_1.opt)((0, combi_1.per)(from, to));
|
|
14654
14676
|
const foo = (0, combi_1.alt)(intoTable, (0, combi_1.seq)(into, (0, combi_1.opt)((0, combi_1.per)(index, (0, combi_1.alt)(ref, assigning)))), (0, combi_1.per)(index, (0, combi_1.alt)(ref, assigning)));
|
|
14655
14677
|
const lines = (0, combi_1.seq)("LINES OF", target, (0, combi_1.opt)(fromTo));
|
|
14656
|
-
const src = (0, combi_1.alt)(expressions_1.SimpleSource4, (0, combi_1.ver)(version_1.Version.v740sp02, expressions_1.Source));
|
|
14678
|
+
const src = (0, combi_1.alt)(expressions_1.SimpleSource4, (0, combi_1.ver)(version_1.Version.v740sp02, expressions_1.Source, version_1.Version.OpenABAP));
|
|
14657
14679
|
const tab = (0, combi_1.seq)("TABLE", expressions_1.Source);
|
|
14658
14680
|
const ret = (0, combi_1.seq)("INSERT", (0, combi_1.altPrio)(tab, (0, combi_1.seq)((0, combi_1.altPrio)(initial, lines, src), foo)));
|
|
14659
14681
|
return ret;
|
|
@@ -29148,7 +29170,7 @@ const basic_1 = __webpack_require__(/*! ../../types/basic */ "./node_modules/@ab
|
|
|
29148
29170
|
const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
|
|
29149
29171
|
class ValueBody {
|
|
29150
29172
|
static runSyntax(node, input, targetType) {
|
|
29151
|
-
var _a;
|
|
29173
|
+
var _a, _b;
|
|
29152
29174
|
if (node === undefined) {
|
|
29153
29175
|
return targetType;
|
|
29154
29176
|
}
|
|
@@ -29181,6 +29203,9 @@ class ValueBody {
|
|
|
29181
29203
|
for (const s of node.findDirectExpressions(Expressions.Source)) {
|
|
29182
29204
|
type = source_1.Source.runSyntax(s, input, type);
|
|
29183
29205
|
}
|
|
29206
|
+
for (const s of ((_b = node.findDirectExpression(Expressions.ValueBase)) === null || _b === void 0 ? void 0 : _b.findDirectExpressions(Expressions.Source)) || []) {
|
|
29207
|
+
type = source_1.Source.runSyntax(s, input, type);
|
|
29208
|
+
}
|
|
29184
29209
|
for (const foo of node.findDirectExpressions(Expressions.ValueBodyLine)) {
|
|
29185
29210
|
if (!(targetType instanceof basic_1.TableType)
|
|
29186
29211
|
&& !(targetType instanceof basic_1.UnknownType)
|
|
@@ -54791,7 +54816,7 @@ class Registry {
|
|
|
54791
54816
|
}
|
|
54792
54817
|
static abaplintVersion() {
|
|
54793
54818
|
// magic, see build script "version.sh"
|
|
54794
|
-
return "2.113.
|
|
54819
|
+
return "2.113.167";
|
|
54795
54820
|
}
|
|
54796
54821
|
getDDICReferences() {
|
|
54797
54822
|
return this.ddicReferences;
|
|
@@ -62126,7 +62151,7 @@ ${indentation} output = ${uniqueName}.\n`;
|
|
|
62126
62151
|
return undefined;
|
|
62127
62152
|
}
|
|
62128
62153
|
outlineValue(low, high, lowFile, highSyntax) {
|
|
62129
|
-
var _a, _b, _c;
|
|
62154
|
+
var _a, _b, _c, _d;
|
|
62130
62155
|
if (!(low.get() instanceof _statement_1.Unknown)) {
|
|
62131
62156
|
return undefined;
|
|
62132
62157
|
}
|
|
@@ -62152,7 +62177,7 @@ ${indentation} output = ${uniqueName}.\n`;
|
|
|
62152
62177
|
const uniqueName = this.uniqueName(firstToken.getStart(), lowFile.getFilename(), highSyntax);
|
|
62153
62178
|
let indentation = " ".repeat(high.getFirstToken().getStart().getCol() - 1);
|
|
62154
62179
|
let body = "";
|
|
62155
|
-
const base = valueBody === null || valueBody === void 0 ? void 0 : valueBody.findExpressionAfterToken("BASE");
|
|
62180
|
+
const base = (_b = valueBody === null || valueBody === void 0 ? void 0 : valueBody.findDirectExpression(Expressions.ValueBase)) === null || _b === void 0 ? void 0 : _b.findExpressionAfterToken("BASE");
|
|
62156
62181
|
if (base) {
|
|
62157
62182
|
body += indentation + uniqueName + " = " + base.concatTokens() + ".\n";
|
|
62158
62183
|
}
|
|
@@ -62221,7 +62246,7 @@ ${indentation} output = ${uniqueName}.\n`;
|
|
|
62221
62246
|
}
|
|
62222
62247
|
}
|
|
62223
62248
|
}
|
|
62224
|
-
if (body === "" && ((
|
|
62249
|
+
if (body === "" && ((_c = valueBody === null || valueBody === void 0 ? void 0 : valueBody.getLastChild()) === null || _c === void 0 ? void 0 : _c.getFirstToken().getStr().toUpperCase()) === "OPTIONAL") {
|
|
62225
62250
|
const fieldChain = valueBody.findFirstExpression(Expressions.FieldChain);
|
|
62226
62251
|
const rowName = this.uniqueName(firstToken.getStart(), lowFile.getFilename(), highSyntax);
|
|
62227
62252
|
let tableExpression = undefined;
|
|
@@ -62240,7 +62265,7 @@ ${indentation} output = ${uniqueName}.\n`;
|
|
|
62240
62265
|
}
|
|
62241
62266
|
let condition = "";
|
|
62242
62267
|
if ((tableExpression === null || tableExpression === void 0 ? void 0 : tableExpression.getChildren().length) === 3) {
|
|
62243
|
-
condition = "INDEX " + ((
|
|
62268
|
+
condition = "INDEX " + ((_d = tableExpression === null || tableExpression === void 0 ? void 0 : tableExpression.findDirectExpression(Expressions.Source)) === null || _d === void 0 ? void 0 : _d.concatTokens());
|
|
62244
62269
|
}
|
|
62245
62270
|
else {
|
|
62246
62271
|
condition = "WITH KEY " + (tableExpression === null || tableExpression === void 0 ? void 0 : tableExpression.concatTokens().replace("[ ", "").replace(" ]", ""));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.167",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.113.
|
|
41
|
+
"@abaplint/core": "^2.113.167",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|