@abaplint/cli 2.101.6 → 2.101.8
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 +45 -7
- package/package.json +4 -4
package/build/cli.js
CHANGED
|
@@ -5192,6 +5192,7 @@ __exportStar(__webpack_require__(/*! ./source */ "./node_modules/@abaplint/core/
|
|
|
5192
5192
|
__exportStar(__webpack_require__(/*! ./sql_aggregation */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_aggregation.js"), exports);
|
|
5193
5193
|
__exportStar(__webpack_require__(/*! ./sql_alias_field */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_alias_field.js"), exports);
|
|
5194
5194
|
__exportStar(__webpack_require__(/*! ./sql_arithmetics */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_arithmetics.js"), exports);
|
|
5195
|
+
__exportStar(__webpack_require__(/*! ./sql_arithmetic_operator */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_arithmetic_operator.js"), exports);
|
|
5195
5196
|
__exportStar(__webpack_require__(/*! ./sql_as_name */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_as_name.js"), exports);
|
|
5196
5197
|
__exportStar(__webpack_require__(/*! ./sql_case */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_case.js"), exports);
|
|
5197
5198
|
__exportStar(__webpack_require__(/*! ./sql_cds_parameters */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_cds_parameters.js"), exports);
|
|
@@ -7106,6 +7107,29 @@ exports.SQLAliasField = SQLAliasField;
|
|
|
7106
7107
|
|
|
7107
7108
|
/***/ }),
|
|
7108
7109
|
|
|
7110
|
+
/***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_arithmetic_operator.js":
|
|
7111
|
+
/*!********************************************************************************************************!*\
|
|
7112
|
+
!*** ./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_arithmetic_operator.js ***!
|
|
7113
|
+
\********************************************************************************************************/
|
|
7114
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7115
|
+
|
|
7116
|
+
"use strict";
|
|
7117
|
+
|
|
7118
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7119
|
+
exports.SQLArithmeticOperator = void 0;
|
|
7120
|
+
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
7121
|
+
const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
|
|
7122
|
+
class SQLArithmeticOperator extends combi_1.Expression {
|
|
7123
|
+
getRunnable() {
|
|
7124
|
+
const operator = (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WPlusW), (0, combi_1.tok)(tokens_1.WDashW), "*", "/");
|
|
7125
|
+
return operator;
|
|
7126
|
+
}
|
|
7127
|
+
}
|
|
7128
|
+
exports.SQLArithmeticOperator = SQLArithmeticOperator;
|
|
7129
|
+
//# sourceMappingURL=sql_arithmetic_operator.js.map
|
|
7130
|
+
|
|
7131
|
+
/***/ }),
|
|
7132
|
+
|
|
7109
7133
|
/***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_arithmetics.js":
|
|
7110
7134
|
/*!************************************************************************************************!*\
|
|
7111
7135
|
!*** ./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_arithmetics.js ***!
|
|
@@ -7118,12 +7142,11 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
7118
7142
|
exports.SQLArithmetics = void 0;
|
|
7119
7143
|
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
7120
7144
|
const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
7121
|
-
const
|
|
7145
|
+
const sql_arithmetic_operator_1 = __webpack_require__(/*! ./sql_arithmetic_operator */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_arithmetic_operator.js");
|
|
7122
7146
|
class SQLArithmetics extends combi_1.Expression {
|
|
7123
7147
|
getRunnable() {
|
|
7124
|
-
const operator = (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WPlusW), (0, combi_1.tok)(tokens_1.WDashW), "*", "/");
|
|
7125
7148
|
const field = (0, combi_1.alt)(_1.SQLFieldName, _1.SQLFunction);
|
|
7126
|
-
return (0, combi_1.seq)(field, (0, combi_1.starPrio)((0, combi_1.seq)(
|
|
7149
|
+
return (0, combi_1.seq)(field, (0, combi_1.starPrio)((0, combi_1.seq)(sql_arithmetic_operator_1.SQLArithmeticOperator, field)));
|
|
7127
7150
|
}
|
|
7128
7151
|
}
|
|
7129
7152
|
exports.SQLArithmetics = SQLArithmetics;
|
|
@@ -7360,11 +7383,14 @@ exports.SQLField = SQLField;
|
|
|
7360
7383
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7361
7384
|
exports.SQLFieldAndValue = void 0;
|
|
7362
7385
|
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
7386
|
+
const integer_1 = __webpack_require__(/*! ./integer */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/integer.js");
|
|
7387
|
+
const sql_arithmetic_operator_1 = __webpack_require__(/*! ./sql_arithmetic_operator */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_arithmetic_operator.js");
|
|
7363
7388
|
const sql_field_name_1 = __webpack_require__(/*! ./sql_field_name */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_field_name.js");
|
|
7364
7389
|
const sql_source_1 = __webpack_require__(/*! ./sql_source */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_source.js");
|
|
7365
7390
|
class SQLFieldAndValue extends combi_1.Expression {
|
|
7366
7391
|
getRunnable() {
|
|
7367
|
-
const
|
|
7392
|
+
const opt1 = (0, combi_1.seq)((0, combi_1.altPrio)(integer_1.Integer, sql_field_name_1.SQLFieldName), sql_arithmetic_operator_1.SQLArithmeticOperator, sql_source_1.SQLSource);
|
|
7393
|
+
const param = (0, combi_1.seq)(sql_field_name_1.SQLFieldName, "=", (0, combi_1.altPrio)(opt1, sql_source_1.SQLSource));
|
|
7368
7394
|
return param;
|
|
7369
7395
|
}
|
|
7370
7396
|
}
|
|
@@ -43035,7 +43061,14 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
|
|
|
43035
43061
|
}
|
|
43036
43062
|
findFieldNames(tree) {
|
|
43037
43063
|
var _a, _b;
|
|
43038
|
-
|
|
43064
|
+
let expr = tree.findFirstExpression(expressions_1.CDSSelect);
|
|
43065
|
+
if (expr === undefined) {
|
|
43066
|
+
expr = tree.findFirstExpression(expressions_1.CDSAnnotate);
|
|
43067
|
+
}
|
|
43068
|
+
if (expr === undefined) {
|
|
43069
|
+
expr = tree.findFirstExpression(expressions_1.CDSDefineProjection);
|
|
43070
|
+
}
|
|
43071
|
+
for (const e of (expr === null || expr === void 0 ? void 0 : expr.findDirectExpressions(expressions_1.CDSElement)) || []) {
|
|
43039
43072
|
let found = (_a = e.findDirectExpression(expressions_1.CDSAs)) === null || _a === void 0 ? void 0 : _a.findDirectExpression(expressions_1.CDSName);
|
|
43040
43073
|
if (found === undefined) {
|
|
43041
43074
|
const list = e.findDirectExpressions(expressions_1.CDSName);
|
|
@@ -48032,7 +48065,7 @@ class Registry {
|
|
|
48032
48065
|
}
|
|
48033
48066
|
static abaplintVersion() {
|
|
48034
48067
|
// magic, see build script "version.sh"
|
|
48035
|
-
return "2.101.
|
|
48068
|
+
return "2.101.8";
|
|
48036
48069
|
}
|
|
48037
48070
|
getDDICReferences() {
|
|
48038
48071
|
return this.ddicReferences;
|
|
@@ -52765,7 +52798,9 @@ Current rules:
|
|
|
52765
52798
|
* ENUMs, but does not nessesarily give the correct type and value
|
|
52766
52799
|
* MESSAGE with non simple source
|
|
52767
52800
|
|
|
52768
|
-
Only one transformation is applied to a statement at a time, so multiple steps might be required to do the full downport
|
|
52801
|
+
Only one transformation is applied to a statement at a time, so multiple steps might be required to do the full downport.
|
|
52802
|
+
|
|
52803
|
+
Make sure to test the downported code, it might not always be completely correct.`,
|
|
52769
52804
|
tags: [_irule_1.RuleTag.Downport, _irule_1.RuleTag.Quickfix],
|
|
52770
52805
|
};
|
|
52771
52806
|
}
|
|
@@ -53481,6 +53516,9 @@ ${indentation}ENDIF.
|
|
|
53481
53516
|
${indentation}`);
|
|
53482
53517
|
const fix2 = edit_helper_1.EditHelper.replaceRange(lowFile, startToken.getStart(), tableExpression.getLastToken().getEnd(), uniqueName);
|
|
53483
53518
|
const fix = edit_helper_1.EditHelper.merge(fix2, fix1);
|
|
53519
|
+
if (high.get() instanceof Statements.ElseIf) {
|
|
53520
|
+
throw "downport, unable to downport table expression in ELSEIF";
|
|
53521
|
+
}
|
|
53484
53522
|
return issue_1.Issue.atToken(lowFile, high.getFirstToken(), "Outline table expression", this.getMetadata().key, this.conf.severity, fix);
|
|
53485
53523
|
}
|
|
53486
53524
|
return undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.101.
|
|
3
|
+
"version": "2.101.8",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.101.
|
|
41
|
+
"@abaplint/core": "^2.101.8",
|
|
42
42
|
"@types/chai": "^4.3.5",
|
|
43
43
|
"@types/glob": "^7.2.0",
|
|
44
44
|
"@types/minimist": "^1.2.2",
|
|
45
45
|
"@types/mocha": "^10.0.1",
|
|
46
|
-
"@types/node": "^20.2.
|
|
46
|
+
"@types/node": "^20.2.5",
|
|
47
47
|
"@types/progress": "^2.0.5",
|
|
48
48
|
"chai": "^4.3.7",
|
|
49
49
|
"chalk": "^5.2.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"mocha": "^10.2.0",
|
|
56
56
|
"progress": "^2.0.3",
|
|
57
57
|
"typescript": "^5.0.4",
|
|
58
|
-
"webpack": "^5.84.
|
|
58
|
+
"webpack": "^5.84.1",
|
|
59
59
|
"webpack-cli": "^5.1.1",
|
|
60
60
|
"xml-js": "^1.6.11"
|
|
61
61
|
},
|