@abaplint/cli 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.
Files changed (2) hide show
  1. package/build/cli.js +16 -6
  2. package/package.json +4 -4
package/build/cli.js CHANGED
@@ -22917,6 +22917,15 @@ class ObjectOriented {
22917
22917
  if (search) {
22918
22918
  return search;
22919
22919
  }
22920
+ for (const a of def.getAliases()) {
22921
+ if (a.getName().toUpperCase() === name.toUpperCase()) {
22922
+ const comp = a.getComponent();
22923
+ const res = this.searchTypeName(this.scope.findObjectDefinition(comp.split("~")[0]), comp.split("~")[1]);
22924
+ if (res) {
22925
+ return res;
22926
+ }
22927
+ }
22928
+ }
22920
22929
  if (name.includes("~")) {
22921
22930
  const interfaceName = name.split("~")[0];
22922
22931
  if (def.getImplementing().some((a) => a.name.toUpperCase() === interfaceName.toUpperCase())) {
@@ -40434,12 +40443,13 @@ class MethodParameters {
40434
40443
  const concat = node.concatTokens().toUpperCase();
40435
40444
  if (concat.includes(" FOR VALIDATE ")
40436
40445
  || concat.includes(" FOR BEHAVIOR ")
40446
+ || concat.includes(" FOR DETERMINE ")
40437
40447
  || concat.includes(" FOR FEATURES ")
40438
40448
  || concat.includes(" FOR INSTANCE FEATURES ")
40449
+ || concat.includes(" FOR LOCK ")
40450
+ || concat.includes(" FOR NUMBERING ")
40439
40451
  || concat.includes(" FOR READ ")
40440
40452
  || concat.includes(" FOR VALIDATION ")
40441
- || concat.includes(" FOR DETERMINE ")
40442
- || concat.includes(" FOR LOCK ")
40443
40453
  || concat.includes(" FOR MODIFY ")) {
40444
40454
  const token = isRap.getFirstToken();
40445
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 */]));
@@ -41197,7 +41207,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
41197
41207
  const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
41198
41208
  class CDSCase extends combi_1.Expression {
41199
41209
  getRunnable() {
41200
- const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.optPrio)((0, combi_1.seq)(".", _1.CDSName)));
41210
+ const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.starPrio)((0, combi_1.seq)(".", _1.CDSName)));
41201
41211
  const value = (0, combi_1.altPrio)(_1.CDSFunction, _1.CDSString, CDSCase, _1.CDSCast, _1.CDSArithmetics, name);
41202
41212
  const thenValue = (0, combi_1.altPrio)((0, combi_1.seq)("(", value, ")"), value);
41203
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)));
@@ -41427,8 +41437,8 @@ const cds_cast_1 = __webpack_require__(/*! ./cds_cast */ "./node_modules/@abapli
41427
41437
  class CDSElement extends combi_1.Expression {
41428
41438
  getRunnable() {
41429
41439
  const redirected = (0, combi_1.seq)(": REDIRECTED TO", (0, combi_1.opt)((0, combi_1.alt)("PARENT", "COMPOSITION CHILD")), _1.CDSName);
41430
- const colonThing = (0, combi_1.seq)(":", _1.CDSName);
41431
- 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));
41432
41442
  }
41433
41443
  }
41434
41444
  exports.CDSElement = CDSElement;
@@ -54502,7 +54512,7 @@ class Registry {
54502
54512
  }
54503
54513
  static abaplintVersion() {
54504
54514
  // magic, see build script "version.sh"
54505
- return "2.113.211";
54515
+ return "2.113.213";
54506
54516
  }
54507
54517
  getDDICReferences() {
54508
54518
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.211",
3
+ "version": "2.113.213",
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.211",
41
+ "@abaplint/core": "^2.113.213",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",
@@ -47,10 +47,10 @@
47
47
  "chai": "^4.5.0",
48
48
  "p-limit": "^3.1.0",
49
49
  "chalk": "^5.6.2",
50
- "eslint": "^9.35.0",
50
+ "eslint": "^9.36.0",
51
51
  "glob": "^11.0.3",
52
52
  "json5": "^2.2.3",
53
- "memfs": "^4.39.0",
53
+ "memfs": "^4.46.1",
54
54
  "minimist": "^1.2.8",
55
55
  "mocha": "^11.7.2",
56
56
  "progress": "^2.0.3",