@abaplint/cli 2.112.8 → 2.112.10

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 +21 -4
  2. package/package.json +4 -4
package/build/cli.js CHANGED
@@ -6974,7 +6974,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
6974
6974
  class ParameterException extends combi_1.Expression {
6975
6975
  getRunnable() {
6976
6976
  const name = (0, combi_1.altPrio)("OTHERS", _1.ParameterName);
6977
- return (0, combi_1.seq)(name, "=", _1.SimpleName, (0, combi_1.optPrio)((0, combi_1.seq)("MESSAGE", _1.Target)));
6977
+ return (0, combi_1.seq)(name, "=", (0, combi_1.altPrio)(_1.Integer, _1.SimpleFieldChain), (0, combi_1.optPrio)((0, combi_1.seq)("MESSAGE", _1.Target)));
6978
6978
  }
6979
6979
  }
6980
6980
  exports.ParameterException = ParameterException;
@@ -25008,6 +25008,10 @@ class FieldChain {
25008
25008
  && node.get() instanceof Expressions.SourceField) {
25009
25009
  return new source_field_1.SourceField().runSyntax(node, input, type);
25010
25010
  }
25011
+ else if (node instanceof nodes_1.ExpressionNode
25012
+ && node.get() instanceof Expressions.Field) {
25013
+ return new source_field_1.SourceField().runSyntax(node, input, type);
25014
+ }
25011
25015
  else if (node.get() instanceof Expressions.ClassName) {
25012
25016
  const classTok = node.getFirstToken();
25013
25017
  const classNam = classTok.getStr();
@@ -26040,6 +26044,8 @@ const source_1 = __webpack_require__(/*! ./source */ "./node_modules/@abaplint/c
26040
26044
  const _type_utils_1 = __webpack_require__(/*! ../_type_utils */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_type_utils.js");
26041
26045
  const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
26042
26046
  const assert_error_1 = __webpack_require__(/*! ../assert_error */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/assert_error.js");
26047
+ const field_chain_1 = __webpack_require__(/*! ./field_chain */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/field_chain.js");
26048
+ const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
26043
26049
  class MethodParameters {
26044
26050
  constructor() {
26045
26051
  this.requiredParameters = undefined;
@@ -26072,7 +26078,14 @@ class MethodParameters {
26072
26078
  this.checkReceiving(children.shift(), input, method);
26073
26079
  break;
26074
26080
  case "EXCEPTIONS":
26075
- children.shift(); // todo, old style exceptions
26081
+ {
26082
+ // todo, old style exceptions
26083
+ const node = children.shift();
26084
+ const exceptions = node.findFirstExpression(Expressions.ParameterException);
26085
+ for (const s of (exceptions === null || exceptions === void 0 ? void 0 : exceptions.findAllExpressions(Expressions.SimpleFieldChain)) || []) {
26086
+ new field_chain_1.FieldChain().runSyntax(s, input, _reference_1.ReferenceType.DataReadReference);
26087
+ }
26088
+ }
26076
26089
  break;
26077
26090
  default:
26078
26091
  throw new assert_error_1.AssertError("MethodParameters, unexpected token, " + name);
@@ -29062,6 +29075,10 @@ class CallFunction {
29062
29075
  for (const s of node.findDirectExpressions(Expressions.SimpleSource2)) {
29063
29076
  new source_1.Source().runSyntax(s, input);
29064
29077
  }
29078
+ const exceptions = node.findFirstExpression(Expressions.ParameterException);
29079
+ for (const s of (exceptions === null || exceptions === void 0 ? void 0 : exceptions.findAllExpressions(Expressions.SimpleFieldChain)) || []) {
29080
+ new field_chain_1.FieldChain().runSyntax(s, input, _reference_1.ReferenceType.DataReadReference);
29081
+ }
29065
29082
  }
29066
29083
  }
29067
29084
  exports.CallFunction = CallFunction;
@@ -52383,7 +52400,7 @@ class Registry {
52383
52400
  }
52384
52401
  static abaplintVersion() {
52385
52402
  // magic, see build script "version.sh"
52386
- return "2.112.8";
52403
+ return "2.112.10";
52387
52404
  }
52388
52405
  getDDICReferences() {
52389
52406
  return this.ddicReferences;
@@ -55849,7 +55866,7 @@ class ClassicExceptionsOverlap extends _abap_rule_1.ABAPRule {
55849
55866
  for (const p of struc.findAllExpressions(Expressions.ParameterListExceptions)) {
55850
55867
  const set = new Set();
55851
55868
  for (const e of p.findAllExpressions(Expressions.ParameterException)) {
55852
- const text = (_a = e.findDirectExpression(Expressions.SimpleName)) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase();
55869
+ const text = (_a = e.findDirectExpression(Expressions.Integer)) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase();
55853
55870
  if (text === undefined) {
55854
55871
  continue;
55855
55872
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.112.8",
3
+ "version": "2.112.10",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,12 +38,12 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.112.8",
42
- "@types/chai": "^4.3.16",
41
+ "@abaplint/core": "^2.112.10",
42
+ "@types/chai": "^4.3.17",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.7",
46
- "@types/node": "^22.0.0",
46
+ "@types/node": "^22.0.2",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.5.0",
49
49
  "chalk": "^5.3.0",