@abaplint/cli 2.100.0 → 2.100.1

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 +8 -2
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -29655,7 +29655,7 @@ const raise_with_1 = __webpack_require__(/*! ../expressions/raise_with */ "./nod
29655
29655
  class Raise {
29656
29656
  runSyntax(node, scope, filename) {
29657
29657
  // todo
29658
- var _a;
29658
+ var _a, _b, _c;
29659
29659
  const classTok = (_a = node.findDirectExpression(Expressions.ClassName)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
29660
29660
  const classNam = classTok === null || classTok === void 0 ? void 0 : classTok.getStr();
29661
29661
  if (classNam) {
@@ -29704,6 +29704,12 @@ class Raise {
29704
29704
  for (const s of node.findDirectExpressions(Expressions.MessageSource)) {
29705
29705
  new message_source_1.MessageSource().runSyntax(s, scope, filename);
29706
29706
  }
29707
+ const id = (_b = node.findExpressionAfterToken("ID")) === null || _b === void 0 ? void 0 : _b.concatTokens();
29708
+ const number = (_c = node.findDirectExpression(Expressions.MessageNumber)) === null || _c === void 0 ? void 0 : _c.concatTokens();
29709
+ if ((id === null || id === void 0 ? void 0 : id.startsWith("'")) && number) {
29710
+ const messageClass = id.substring(1, id.length - 1).toUpperCase();
29711
+ scope.getMSAGReferences().addUsing(filename, node.getFirstToken(), messageClass, number);
29712
+ }
29707
29713
  }
29708
29714
  }
29709
29715
  exports.Raise = Raise;
@@ -47698,7 +47704,7 @@ class Registry {
47698
47704
  }
47699
47705
  static abaplintVersion() {
47700
47706
  // magic, see build script "version.sh"
47701
- return "2.100.0";
47707
+ return "2.100.1";
47702
47708
  }
47703
47709
  getDDICReferences() {
47704
47710
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.100.0",
3
+ "version": "2.100.1",
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.100.0",
41
+ "@abaplint/core": "^2.100.1",
42
42
  "@types/chai": "^4.3.5",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.2",