@abaplint/cli 2.120.6 → 2.120.8

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 +9 -8
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -7015,10 +7015,10 @@ exports.PerformTables = PerformTables;
7015
7015
  Object.defineProperty(exports, "__esModule", ({ value: true }));
7016
7016
  exports.PerformUsing = void 0;
7017
7017
  const combi_1 = __webpack_require__(/*! ../combi */ "../core/build/src/abap/2_statements/combi.js");
7018
- const source_1 = __webpack_require__(/*! ./source */ "../core/build/src/abap/2_statements/expressions/source.js");
7018
+ const simple_source3_1 = __webpack_require__(/*! ./simple_source3 */ "../core/build/src/abap/2_statements/expressions/simple_source3.js");
7019
7019
  class PerformUsing extends combi_1.Expression {
7020
7020
  getRunnable() {
7021
- const using = (0, combi_1.seq)("USING", (0, combi_1.plus)(source_1.Source));
7021
+ const using = (0, combi_1.seq)("USING", (0, combi_1.plus)(simple_source3_1.SimpleSource3));
7022
7022
  return using;
7023
7023
  }
7024
7024
  }
@@ -17753,7 +17753,8 @@ class ReadEntities {
17753
17753
  const result = (0, combi_1.seq)("RESULT", expressions_1.Target);
17754
17754
  const failed = (0, combi_1.seq)("FAILED", expressions_1.Target);
17755
17755
  const reported = (0, combi_1.seq)("REPORTED", expressions_1.Target);
17756
- const foo = (0, combi_1.seq)((0, combi_1.opt)((0, combi_1.seq)("BY", expressions_1.EMLEntityPath)), (0, combi_1.alt)(fields, from, all), (0, combi_1.optPrio)(result));
17756
+ const execute = (0, combi_1.seq)("EXECUTE", expressions_1.SimpleName, from);
17757
+ const foo = (0, combi_1.seq)((0, combi_1.opt)((0, combi_1.seq)("BY", expressions_1.EMLEntityPath)), (0, combi_1.alt)(fields, from, all, execute), (0, combi_1.optPrio)(result));
17757
17758
  const entity = (0, combi_1.seq)("ENTITY", expressions_1.NamespaceSimpleName, (0, combi_1.plus)(foo));
17758
17759
  const s = (0, combi_1.seq)("ENTITIES OF", expressions_1.NamespaceSimpleName, (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.plus)(entity), (0, combi_1.optPrio)((0, combi_1.seq)("LINK", expressions_1.Target)), (0, combi_1.optPrio)((0, combi_1.per)(failed, reported)));
17759
17760
  const byall = (0, combi_1.seq)("BY", expressions_1.EMLEntityPath, all);
@@ -43134,7 +43135,7 @@ class Perform {
43134
43135
  }
43135
43136
  }
43136
43137
  for (const u of node.findDirectExpressions(Expressions.PerformUsing)) {
43137
- for (const s of u.findDirectExpressions(Expressions.Source)) {
43138
+ for (const s of u.findDirectExpressions(Expressions.SimpleSource3)) {
43138
43139
  source_1.Source.runSyntax(s, input);
43139
43140
  }
43140
43141
  }
@@ -69164,7 +69165,7 @@ class Registry {
69164
69165
  }
69165
69166
  static abaplintVersion() {
69166
69167
  // magic, see build script "version.js"
69167
- return "2.120.6";
69168
+ return "2.120.8";
69168
69169
  }
69169
69170
  getDDICReferences() {
69170
69171
  return this.ddicReferences;
@@ -87670,13 +87671,13 @@ https://github.com/SAP/styleguides/blob/main/clean-abap/sub-sections/AvoidEncodi
87670
87671
  return ret;
87671
87672
  }
87672
87673
  checkMethodParameters(topNode, regex, file) {
87673
- var _a, _b;
87674
+ var _a, _b, _c;
87674
87675
  const ret = [];
87675
87676
  for (const method of topNode.findAllStatements(Statements.MethodDef)) {
87676
87677
  for (const param of method.findAllExpressionsMulti([Expressions.MethodDefReturning, Expressions.MethodParam])) {
87677
87678
  const nameToken = param === null || param === void 0 ? void 0 : param.findFirstExpression(Expressions.MethodParamName);
87678
- const type = (_b = (_a = param === null || param === void 0 ? void 0 : param.findFirstExpression(Expressions.TypeParam)) === null || _a === void 0 ? void 0 : _a.concatTokens()) === null || _b === void 0 ? void 0 : _b.toUpperCase();
87679
- if (this.getConfig().allowIsPrefixBoolean === true && (type === null || type === void 0 ? void 0 : type.endsWith("TYPE ABAP_BOOL"))) {
87679
+ const typeName = (_c = (_b = (_a = param === null || param === void 0 ? void 0 : param.findFirstExpression(Expressions.TypeParam)) === null || _a === void 0 ? void 0 : _a.findFirstExpression(Expressions.TypeNameOrInfer)) === null || _b === void 0 ? void 0 : _b.concatTokens()) === null || _c === void 0 ? void 0 : _c.toUpperCase();
87680
+ if (this.getConfig().allowIsPrefixBoolean === true && typeName === "ABAP_BOOL") {
87680
87681
  continue;
87681
87682
  }
87682
87683
  const name = nameToken === null || nameToken === void 0 ? void 0 : nameToken.concatTokens();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.120.6",
3
+ "version": "2.120.8",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "homepage": "https://abaplint.org",
41
41
  "devDependencies": {
42
- "@abaplint/core": "^2.120.6",
42
+ "@abaplint/core": "^2.120.8",
43
43
  "@types/chai": "^4.3.20",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.10",