@abaplint/core 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.
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PerformUsing = void 0;
4
4
  const combi_1 = require("../combi");
5
- const source_1 = require("./source");
5
+ const simple_source3_1 = require("./simple_source3");
6
6
  class PerformUsing extends combi_1.Expression {
7
7
  getRunnable() {
8
- const using = (0, combi_1.seq)("USING", (0, combi_1.plus)(source_1.Source));
8
+ const using = (0, combi_1.seq)("USING", (0, combi_1.plus)(simple_source3_1.SimpleSource3));
9
9
  return using;
10
10
  }
11
11
  }
@@ -13,7 +13,8 @@ class ReadEntities {
13
13
  const result = (0, combi_1.seq)("RESULT", expressions_1.Target);
14
14
  const failed = (0, combi_1.seq)("FAILED", expressions_1.Target);
15
15
  const reported = (0, combi_1.seq)("REPORTED", expressions_1.Target);
16
- 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));
16
+ const execute = (0, combi_1.seq)("EXECUTE", expressions_1.SimpleName, from);
17
+ 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));
17
18
  const entity = (0, combi_1.seq)("ENTITY", expressions_1.NamespaceSimpleName, (0, combi_1.plus)(foo));
18
19
  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)));
19
20
  const byall = (0, combi_1.seq)("BY", expressions_1.EMLEntityPath, all);
@@ -60,7 +60,7 @@ class Perform {
60
60
  }
61
61
  }
62
62
  for (const u of node.findDirectExpressions(Expressions.PerformUsing)) {
63
- for (const s of u.findDirectExpressions(Expressions.Source)) {
63
+ for (const s of u.findDirectExpressions(Expressions.SimpleSource3)) {
64
64
  source_1.Source.runSyntax(s, input);
65
65
  }
66
66
  }
@@ -75,7 +75,7 @@ class Registry {
75
75
  }
76
76
  static abaplintVersion() {
77
77
  // magic, see build script "version.js"
78
- return "2.120.6";
78
+ return "2.120.8";
79
79
  }
80
80
  getDDICReferences() {
81
81
  return this.ddicReferences;
@@ -220,13 +220,13 @@ https://github.com/SAP/styleguides/blob/main/clean-abap/sub-sections/AvoidEncodi
220
220
  return ret;
221
221
  }
222
222
  checkMethodParameters(topNode, regex, file) {
223
- var _a, _b;
223
+ var _a, _b, _c;
224
224
  const ret = [];
225
225
  for (const method of topNode.findAllStatements(Statements.MethodDef)) {
226
226
  for (const param of method.findAllExpressionsMulti([Expressions.MethodDefReturning, Expressions.MethodParam])) {
227
227
  const nameToken = param === null || param === void 0 ? void 0 : param.findFirstExpression(Expressions.MethodParamName);
228
- 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();
229
- if (this.getConfig().allowIsPrefixBoolean === true && (type === null || type === void 0 ? void 0 : type.endsWith("TYPE ABAP_BOOL"))) {
228
+ 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();
229
+ if (this.getConfig().allowIsPrefixBoolean === true && typeName === "ABAP_BOOL") {
230
230
  continue;
231
231
  }
232
232
  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/core",
3
- "version": "2.120.6",
3
+ "version": "2.120.8",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",