@abaplint/cli 2.113.50 → 2.113.51
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 +16 -11
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -21957,7 +21957,7 @@ class ObjectOriented {
|
|
|
21957
21957
|
return ret;
|
|
21958
21958
|
}
|
|
21959
21959
|
addAliasedAttributes(classDefinition) {
|
|
21960
|
-
for (const alias of classDefinition.getAliases()) {
|
|
21960
|
+
for (const alias of classDefinition.getAliases() || []) {
|
|
21961
21961
|
const comp = alias.getComponent();
|
|
21962
21962
|
const idef = this.scope.findInterfaceDefinition(comp.split("~")[0]);
|
|
21963
21963
|
if (idef) {
|
|
@@ -26953,7 +26953,7 @@ class Select {
|
|
|
26953
26953
|
const fields = this.findFields(node, input);
|
|
26954
26954
|
if (fields.length === 0
|
|
26955
26955
|
&& node.findDirectExpression(Expressions.SQLFieldListLoop) === undefined) {
|
|
26956
|
-
const message = `fields missing`;
|
|
26956
|
+
const message = `SELECT: fields missing`;
|
|
26957
26957
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
26958
26958
|
return;
|
|
26959
26959
|
}
|
|
@@ -27132,7 +27132,7 @@ class Select {
|
|
|
27132
27132
|
const ret = [];
|
|
27133
27133
|
expr = node.findFirstExpression(Expressions.SQLFieldList);
|
|
27134
27134
|
if (expr === undefined) {
|
|
27135
|
-
expr = node.
|
|
27135
|
+
expr = node.findFirstExpression(Expressions.SQLFieldListLoop);
|
|
27136
27136
|
}
|
|
27137
27137
|
if (((_a = expr === null || expr === void 0 ? void 0 : expr.getFirstChild()) === null || _a === void 0 ? void 0 : _a.get()) instanceof Expressions.Dynamic) {
|
|
27138
27138
|
new dynamic_1.Dynamic().runSyntax(expr.getFirstChild(), input);
|
|
@@ -29584,8 +29584,11 @@ class ClassImplementation {
|
|
|
29584
29584
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
29585
29585
|
return;
|
|
29586
29586
|
}
|
|
29587
|
-
|
|
29588
|
-
|
|
29587
|
+
const types = classDefinition.getTypeDefinitions();
|
|
29588
|
+
if (types !== undefined) {
|
|
29589
|
+
for (const t of types.getAll()) {
|
|
29590
|
+
input.scope.addType(t.type);
|
|
29591
|
+
}
|
|
29589
29592
|
}
|
|
29590
29593
|
const sup = input.scope.findClassDefinition(classDefinition.getSuperClass());
|
|
29591
29594
|
if (sup) {
|
|
@@ -29598,10 +29601,12 @@ class ClassImplementation {
|
|
|
29598
29601
|
input.scope.addIdentifier(new _typed_identifier_1.TypedIdentifier(new tokens_1.Identifier(new position_1.Position(1, 1), "me"), _builtin_1.BuiltIn.filename, new basic_1.ObjectReferenceType(classDefinition)));
|
|
29599
29602
|
helper.addAliasedAttributes(classDefinition); // todo, this is not correct, take care of instance vs static
|
|
29600
29603
|
const classAttributes = classDefinition.getAttributes();
|
|
29601
|
-
|
|
29602
|
-
|
|
29603
|
-
|
|
29604
|
-
|
|
29604
|
+
if (classAttributes !== undefined) {
|
|
29605
|
+
input.scope.addList(classAttributes.getConstants());
|
|
29606
|
+
input.scope.addList(classAttributes.getStatic());
|
|
29607
|
+
for (const i of classAttributes.getInstance()) {
|
|
29608
|
+
input.scope.addExtraLikeType(i);
|
|
29609
|
+
}
|
|
29605
29610
|
}
|
|
29606
29611
|
helper.fromSuperClassesAndInterfaces(classDefinition);
|
|
29607
29612
|
}
|
|
@@ -40561,7 +40566,7 @@ const cds_as_1 = __webpack_require__(/*! ./cds_as */ "./node_modules/@abaplint/c
|
|
|
40561
40566
|
const cds_cast_1 = __webpack_require__(/*! ./cds_cast */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_cast.js");
|
|
40562
40567
|
class CDSElement extends combi_1.Expression {
|
|
40563
40568
|
getRunnable() {
|
|
40564
|
-
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.
|
|
40569
|
+
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.CDSName, ": REDIRECTED TO", (0, combi_1.opt)((0, combi_1.alt)("PARENT", "COMPOSITION CHILD")), _1.CDSName), _1.CDSPrefixedName, (0, combi_1.regex)(/^\d+$/)), (0, combi_1.opt)(cds_as_1.CDSAs));
|
|
40565
40570
|
}
|
|
40566
40571
|
}
|
|
40567
40572
|
exports.CDSElement = CDSElement;
|
|
@@ -53109,7 +53114,7 @@ class Registry {
|
|
|
53109
53114
|
}
|
|
53110
53115
|
static abaplintVersion() {
|
|
53111
53116
|
// magic, see build script "version.sh"
|
|
53112
|
-
return "2.113.
|
|
53117
|
+
return "2.113.51";
|
|
53113
53118
|
}
|
|
53114
53119
|
getDDICReferences() {
|
|
53115
53120
|
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.51",
|
|
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.51",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|