@abaplint/cli 2.113.212 → 2.113.214
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 +24 -21
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -24552,7 +24552,7 @@ class BasicTypes {
|
|
|
24552
24552
|
throw new Error("parseType, componentName expected");
|
|
24553
24553
|
}
|
|
24554
24554
|
if (found instanceof Types.StructureType) {
|
|
24555
|
-
const newComponents = found.getComponents();
|
|
24555
|
+
const newComponents = [...found.getComponents()];
|
|
24556
24556
|
newComponents.push({ name: componentName, type: Types.VoidType.get("INDICATORStodo") });
|
|
24557
24557
|
found = new Types.StructureType(newComponents, qualifiedName);
|
|
24558
24558
|
}
|
|
@@ -40443,12 +40443,13 @@ class MethodParameters {
|
|
|
40443
40443
|
const concat = node.concatTokens().toUpperCase();
|
|
40444
40444
|
if (concat.includes(" FOR VALIDATE ")
|
|
40445
40445
|
|| concat.includes(" FOR BEHAVIOR ")
|
|
40446
|
+
|| concat.includes(" FOR DETERMINE ")
|
|
40446
40447
|
|| concat.includes(" FOR FEATURES ")
|
|
40447
40448
|
|| concat.includes(" FOR INSTANCE FEATURES ")
|
|
40449
|
+
|| concat.includes(" FOR LOCK ")
|
|
40450
|
+
|| concat.includes(" FOR NUMBERING ")
|
|
40448
40451
|
|| concat.includes(" FOR READ ")
|
|
40449
40452
|
|| concat.includes(" FOR VALIDATION ")
|
|
40450
|
-
|| concat.includes(" FOR DETERMINE ")
|
|
40451
|
-
|| concat.includes(" FOR LOCK ")
|
|
40452
40453
|
|| concat.includes(" FOR MODIFY ")) {
|
|
40453
40454
|
const token = isRap.getFirstToken();
|
|
40454
40455
|
this.exporting.push(new _typed_identifier_1.TypedIdentifier(new identifier_1.Identifier(token.getStart(), "failed"), input.filename, basic_1.VoidType.get("RapMethodParameter"), ["exporting" /* IdentifierMeta.MethodExporting */]));
|
|
@@ -40671,7 +40672,7 @@ class CDSDetermineTypes {
|
|
|
40671
40672
|
}
|
|
40672
40673
|
components.push({
|
|
40673
40674
|
name: f.name,
|
|
40674
|
-
type: new basic_1.UnknownType("CDS parser error, unknown source, " + ddlsName),
|
|
40675
|
+
type: new basic_1.UnknownType("CDS parser error, unknown source, " + f.name + ", " + ddlsName),
|
|
40675
40676
|
});
|
|
40676
40677
|
continue;
|
|
40677
40678
|
}
|
|
@@ -41206,7 +41207,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
|
|
|
41206
41207
|
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
41207
41208
|
class CDSCase extends combi_1.Expression {
|
|
41208
41209
|
getRunnable() {
|
|
41209
|
-
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.
|
|
41210
|
+
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.starPrio)((0, combi_1.seq)(".", _1.CDSName)));
|
|
41210
41211
|
const value = (0, combi_1.altPrio)(_1.CDSFunction, _1.CDSString, CDSCase, _1.CDSCast, _1.CDSArithmetics, name);
|
|
41211
41212
|
const thenValue = (0, combi_1.altPrio)((0, combi_1.seq)("(", value, ")"), value);
|
|
41212
41213
|
const simple = (0, combi_1.seq)((0, combi_1.altPrio)(_1.CDSFunction, name), (0, combi_1.plusPrio)((0, combi_1.seq)("WHEN", value, "THEN", thenValue)));
|
|
@@ -41233,7 +41234,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
|
|
|
41233
41234
|
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
41234
41235
|
class CDSCast extends combi_1.Expression {
|
|
41235
41236
|
getRunnable() {
|
|
41236
|
-
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.
|
|
41237
|
+
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.starPrio)((0, combi_1.seq)(".", _1.CDSName)));
|
|
41237
41238
|
return (0, combi_1.seq)("CAST", "(", (0, combi_1.altPrio)(_1.CDSFunction, _1.CDSCase, _1.CDSAggregate, _1.CDSArithmetics, CDSCast, _1.CDSString, name), "AS", _1.CDSType, (0, combi_1.optPrio)((0, combi_1.seq)("PRESERVING", "TYPE")), ")");
|
|
41238
41239
|
}
|
|
41239
41240
|
}
|
|
@@ -41280,7 +41281,7 @@ const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node
|
|
|
41280
41281
|
const cds_integer_1 = __webpack_require__(/*! ./cds_integer */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_integer.js");
|
|
41281
41282
|
class CDSCondition extends combi_1.Expression {
|
|
41282
41283
|
getRunnable() {
|
|
41283
|
-
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.
|
|
41284
|
+
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.starPrio)((0, combi_1.seq)(".", (0, combi_1.altPrio)(_1.CDSString, _1.CDSName))));
|
|
41284
41285
|
const left = (0, combi_1.altPrio)(_1.CDSString, _1.CDSFunction, _1.CDSAggregate, name);
|
|
41285
41286
|
const operators = (0, combi_1.altPrio)("=", (0, combi_1.seq)("!", "="), (0, combi_1.seq)("<", ">"), (0, combi_1.seq)(">", "="), (0, combi_1.seq)("<", "="), "<", ">", "LIKE", "NOT LIKE");
|
|
41286
41287
|
const compare = (0, combi_1.seq)(operators, (0, combi_1.altPrio)(left, cds_integer_1.CDSInteger));
|
|
@@ -41436,8 +41437,8 @@ const cds_cast_1 = __webpack_require__(/*! ./cds_cast */ "./node_modules/@abapli
|
|
|
41436
41437
|
class CDSElement extends combi_1.Expression {
|
|
41437
41438
|
getRunnable() {
|
|
41438
41439
|
const redirected = (0, combi_1.seq)(": REDIRECTED TO", (0, combi_1.opt)((0, combi_1.alt)("PARENT", "COMPOSITION CHILD")), _1.CDSName);
|
|
41439
|
-
const colonThing = (0, combi_1.seq)(":", _1.CDSName);
|
|
41440
|
-
return (0, combi_1.seq)((0, combi_1.starPrio)(_1.CDSAnnotation), (0, combi_1.optPrio)("KEY"), (0, combi_1.altPrio)(_1.CDSAggregate, _1.CDSString, _1.CDSArithmetics, _1.CDSFunction, cds_cast_1.CDSCast, _1.CDSCase, (0, combi_1.seq)("(", _1.CDSCase, ")"), (0, combi_1.seq)(_1.CDSPrefixedName, (0, combi_1.opt)((0, combi_1.alt)(redirected, colonThing))), _1.CDSInteger), (0, combi_1.opt)(cds_as_1.CDSAs));
|
|
41440
|
+
const colonThing = (0, combi_1.seq)(":", (0, combi_1.alt)(_1.CDSName, _1.CDSType));
|
|
41441
|
+
return (0, combi_1.seq)((0, combi_1.starPrio)(_1.CDSAnnotation), (0, combi_1.optPrio)((0, combi_1.altPrio)("KEY", "VIRTUAL")), (0, combi_1.altPrio)(_1.CDSAggregate, _1.CDSString, _1.CDSArithmetics, _1.CDSFunction, cds_cast_1.CDSCast, _1.CDSCase, (0, combi_1.seq)("(", _1.CDSCase, ")"), (0, combi_1.seq)(_1.CDSPrefixedName, (0, combi_1.opt)((0, combi_1.alt)(redirected, colonThing))), _1.CDSInteger), (0, combi_1.opt)(cds_as_1.CDSAs));
|
|
41441
41442
|
}
|
|
41442
41443
|
}
|
|
41443
41444
|
exports.CDSElement = CDSElement;
|
|
@@ -41642,7 +41643,7 @@ class CDSJoin extends combi_1.Expression {
|
|
|
41642
41643
|
getRunnable() {
|
|
41643
41644
|
const cond = (0, combi_1.seq)(_1.CDSSource, "ON", cds_condition_1.CDSCondition);
|
|
41644
41645
|
const foo = (0, combi_1.altPrio)((0, combi_1.seq)("(", cond, ")"), cond);
|
|
41645
|
-
return (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("LEFT OUTER TO ONE", "LEFT OUTER", "INNER")), "JOIN", foo);
|
|
41646
|
+
return (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("LEFT OUTER TO ONE", "LEFT OUTER", "INNER", "CROSS")), "JOIN", foo);
|
|
41646
41647
|
}
|
|
41647
41648
|
}
|
|
41648
41649
|
exports.CDSJoin = CDSJoin;
|
|
@@ -48048,7 +48049,7 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
|
|
|
48048
48049
|
return undefined;
|
|
48049
48050
|
}
|
|
48050
48051
|
findFieldNames(tree) {
|
|
48051
|
-
var _a, _b;
|
|
48052
|
+
var _a, _b, _c;
|
|
48052
48053
|
let expr = tree.findFirstExpression(expressions_1.CDSSelect);
|
|
48053
48054
|
if (expr === undefined) {
|
|
48054
48055
|
expr = tree.findFirstExpression(expressions_1.CDSAnnotate);
|
|
@@ -48060,14 +48061,16 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
|
|
|
48060
48061
|
let prefix = "";
|
|
48061
48062
|
let found = (_a = e.findDirectExpression(expressions_1.CDSAs)) === null || _a === void 0 ? void 0 : _a.findDirectExpression(expressions_1.CDSName);
|
|
48062
48063
|
if (found === undefined) {
|
|
48063
|
-
const list = e.findAllExpressions(expressions_1.CDSName);
|
|
48064
|
-
if (
|
|
48065
|
-
|
|
48066
|
-
|
|
48067
|
-
|
|
48068
|
-
|
|
48069
|
-
|
|
48070
|
-
|
|
48064
|
+
const list = (_b = e.findDirectExpression(expressions_1.CDSPrefixedName)) === null || _b === void 0 ? void 0 : _b.findAllExpressions(expressions_1.CDSName);
|
|
48065
|
+
if (list) {
|
|
48066
|
+
if (e.concatTokens().toUpperCase().includes(" REDIRECTED TO ")) {
|
|
48067
|
+
found = list[0];
|
|
48068
|
+
}
|
|
48069
|
+
else {
|
|
48070
|
+
found = list[list.length - 1];
|
|
48071
|
+
if (list.length > 1) {
|
|
48072
|
+
prefix = list[0].concatTokens();
|
|
48073
|
+
}
|
|
48071
48074
|
}
|
|
48072
48075
|
}
|
|
48073
48076
|
}
|
|
@@ -48075,7 +48078,7 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
|
|
|
48075
48078
|
continue;
|
|
48076
48079
|
}
|
|
48077
48080
|
const name = found === null || found === void 0 ? void 0 : found.concatTokens();
|
|
48078
|
-
if ((
|
|
48081
|
+
if ((_c = this.parsedData) === null || _c === void 0 ? void 0 : _c.associations.some(a => { var _a; return a.name.toUpperCase() === name.toUpperCase() || ((_a = a.as) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === name.toUpperCase(); })) {
|
|
48079
48082
|
continue;
|
|
48080
48083
|
}
|
|
48081
48084
|
const annotations = [];
|
|
@@ -54511,7 +54514,7 @@ class Registry {
|
|
|
54511
54514
|
}
|
|
54512
54515
|
static abaplintVersion() {
|
|
54513
54516
|
// magic, see build script "version.sh"
|
|
54514
|
-
return "2.113.
|
|
54517
|
+
return "2.113.214";
|
|
54515
54518
|
}
|
|
54516
54519
|
getDDICReferences() {
|
|
54517
54520
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.214",
|
|
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.214",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|