@abaplint/core 2.113.211 → 2.113.213
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.
|
@@ -207,6 +207,15 @@ class ObjectOriented {
|
|
|
207
207
|
if (search) {
|
|
208
208
|
return search;
|
|
209
209
|
}
|
|
210
|
+
for (const a of def.getAliases()) {
|
|
211
|
+
if (a.getName().toUpperCase() === name.toUpperCase()) {
|
|
212
|
+
const comp = a.getComponent();
|
|
213
|
+
const res = this.searchTypeName(this.scope.findObjectDefinition(comp.split("~")[0]), comp.split("~")[1]);
|
|
214
|
+
if (res) {
|
|
215
|
+
return res;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
210
219
|
if (name.includes("~")) {
|
|
211
220
|
const interfaceName = name.split("~")[0];
|
|
212
221
|
if (def.getImplementing().some((a) => a.name.toUpperCase() === interfaceName.toUpperCase())) {
|
|
@@ -183,12 +183,13 @@ class MethodParameters {
|
|
|
183
183
|
const concat = node.concatTokens().toUpperCase();
|
|
184
184
|
if (concat.includes(" FOR VALIDATE ")
|
|
185
185
|
|| concat.includes(" FOR BEHAVIOR ")
|
|
186
|
+
|| concat.includes(" FOR DETERMINE ")
|
|
186
187
|
|| concat.includes(" FOR FEATURES ")
|
|
187
188
|
|| concat.includes(" FOR INSTANCE FEATURES ")
|
|
189
|
+
|| concat.includes(" FOR LOCK ")
|
|
190
|
+
|| concat.includes(" FOR NUMBERING ")
|
|
188
191
|
|| concat.includes(" FOR READ ")
|
|
189
192
|
|| concat.includes(" FOR VALIDATION ")
|
|
190
|
-
|| concat.includes(" FOR DETERMINE ")
|
|
191
|
-
|| concat.includes(" FOR LOCK ")
|
|
192
193
|
|| concat.includes(" FOR MODIFY ")) {
|
|
193
194
|
const token = isRap.getFirstToken();
|
|
194
195
|
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 */]));
|
|
@@ -5,7 +5,7 @@ const _1 = require(".");
|
|
|
5
5
|
const combi_1 = require("../../abap/2_statements/combi");
|
|
6
6
|
class CDSCase extends combi_1.Expression {
|
|
7
7
|
getRunnable() {
|
|
8
|
-
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.
|
|
8
|
+
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.starPrio)((0, combi_1.seq)(".", _1.CDSName)));
|
|
9
9
|
const value = (0, combi_1.altPrio)(_1.CDSFunction, _1.CDSString, CDSCase, _1.CDSCast, _1.CDSArithmetics, name);
|
|
10
10
|
const thenValue = (0, combi_1.altPrio)((0, combi_1.seq)("(", value, ")"), value);
|
|
11
11
|
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)));
|
|
@@ -8,8 +8,8 @@ const cds_cast_1 = require("./cds_cast");
|
|
|
8
8
|
class CDSElement extends combi_1.Expression {
|
|
9
9
|
getRunnable() {
|
|
10
10
|
const redirected = (0, combi_1.seq)(": REDIRECTED TO", (0, combi_1.opt)((0, combi_1.alt)("PARENT", "COMPOSITION CHILD")), _1.CDSName);
|
|
11
|
-
const colonThing = (0, combi_1.seq)(":", _1.CDSName);
|
|
12
|
-
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));
|
|
11
|
+
const colonThing = (0, combi_1.seq)(":", (0, combi_1.alt)(_1.CDSName, _1.CDSType));
|
|
12
|
+
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));
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
exports.CDSElement = CDSElement;
|
package/build/src/registry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.213",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"@microsoft/api-extractor": "^7.52.13",
|
|
54
54
|
"@types/chai": "^4.3.20",
|
|
55
55
|
"@types/mocha": "^10.0.10",
|
|
56
|
-
"@types/node": "^24.
|
|
56
|
+
"@types/node": "^24.5.2",
|
|
57
57
|
"chai": "^4.5.0",
|
|
58
|
-
"eslint": "^9.
|
|
58
|
+
"eslint": "^9.36.0",
|
|
59
59
|
"mocha": "^11.7.2",
|
|
60
60
|
"c8": "^10.1.3",
|
|
61
61
|
"source-map-support": "^0.5.21",
|