@abaplint/cli 2.113.213 → 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 +18 -16
- 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
|
}
|
|
@@ -40672,7 +40672,7 @@ class CDSDetermineTypes {
|
|
|
40672
40672
|
}
|
|
40673
40673
|
components.push({
|
|
40674
40674
|
name: f.name,
|
|
40675
|
-
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),
|
|
40676
40676
|
});
|
|
40677
40677
|
continue;
|
|
40678
40678
|
}
|
|
@@ -41234,7 +41234,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
|
|
|
41234
41234
|
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
41235
41235
|
class CDSCast extends combi_1.Expression {
|
|
41236
41236
|
getRunnable() {
|
|
41237
|
-
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)));
|
|
41238
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")), ")");
|
|
41239
41239
|
}
|
|
41240
41240
|
}
|
|
@@ -41281,7 +41281,7 @@ const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node
|
|
|
41281
41281
|
const cds_integer_1 = __webpack_require__(/*! ./cds_integer */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_integer.js");
|
|
41282
41282
|
class CDSCondition extends combi_1.Expression {
|
|
41283
41283
|
getRunnable() {
|
|
41284
|
-
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))));
|
|
41285
41285
|
const left = (0, combi_1.altPrio)(_1.CDSString, _1.CDSFunction, _1.CDSAggregate, name);
|
|
41286
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");
|
|
41287
41287
|
const compare = (0, combi_1.seq)(operators, (0, combi_1.altPrio)(left, cds_integer_1.CDSInteger));
|
|
@@ -41643,7 +41643,7 @@ class CDSJoin extends combi_1.Expression {
|
|
|
41643
41643
|
getRunnable() {
|
|
41644
41644
|
const cond = (0, combi_1.seq)(_1.CDSSource, "ON", cds_condition_1.CDSCondition);
|
|
41645
41645
|
const foo = (0, combi_1.altPrio)((0, combi_1.seq)("(", cond, ")"), cond);
|
|
41646
|
-
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);
|
|
41647
41647
|
}
|
|
41648
41648
|
}
|
|
41649
41649
|
exports.CDSJoin = CDSJoin;
|
|
@@ -48049,7 +48049,7 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
|
|
|
48049
48049
|
return undefined;
|
|
48050
48050
|
}
|
|
48051
48051
|
findFieldNames(tree) {
|
|
48052
|
-
var _a, _b;
|
|
48052
|
+
var _a, _b, _c;
|
|
48053
48053
|
let expr = tree.findFirstExpression(expressions_1.CDSSelect);
|
|
48054
48054
|
if (expr === undefined) {
|
|
48055
48055
|
expr = tree.findFirstExpression(expressions_1.CDSAnnotate);
|
|
@@ -48061,14 +48061,16 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
|
|
|
48061
48061
|
let prefix = "";
|
|
48062
48062
|
let found = (_a = e.findDirectExpression(expressions_1.CDSAs)) === null || _a === void 0 ? void 0 : _a.findDirectExpression(expressions_1.CDSName);
|
|
48063
48063
|
if (found === undefined) {
|
|
48064
|
-
const list = e.findAllExpressions(expressions_1.CDSName);
|
|
48065
|
-
if (
|
|
48066
|
-
|
|
48067
|
-
|
|
48068
|
-
|
|
48069
|
-
|
|
48070
|
-
|
|
48071
|
-
|
|
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
|
+
}
|
|
48072
48074
|
}
|
|
48073
48075
|
}
|
|
48074
48076
|
}
|
|
@@ -48076,7 +48078,7 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
|
|
|
48076
48078
|
continue;
|
|
48077
48079
|
}
|
|
48078
48080
|
const name = found === null || found === void 0 ? void 0 : found.concatTokens();
|
|
48079
|
-
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(); })) {
|
|
48080
48082
|
continue;
|
|
48081
48083
|
}
|
|
48082
48084
|
const annotations = [];
|
|
@@ -54512,7 +54514,7 @@ class Registry {
|
|
|
54512
54514
|
}
|
|
54513
54515
|
static abaplintVersion() {
|
|
54514
54516
|
// magic, see build script "version.sh"
|
|
54515
|
-
return "2.113.
|
|
54517
|
+
return "2.113.214";
|
|
54516
54518
|
}
|
|
54517
54519
|
getDDICReferences() {
|
|
54518
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",
|