@abaplint/core 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.
@@ -11,7 +11,7 @@ const raise_with_1 = require("../expressions/raise_with");
11
11
  class Raise {
12
12
  runSyntax(node, scope, filename) {
13
13
  // todo
14
- var _a;
14
+ var _a, _b, _c;
15
15
  const classTok = (_a = node.findDirectExpression(Expressions.ClassName)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
16
16
  const classNam = classTok === null || classTok === void 0 ? void 0 : classTok.getStr();
17
17
  if (classNam) {
@@ -60,6 +60,12 @@ class Raise {
60
60
  for (const s of node.findDirectExpressions(Expressions.MessageSource)) {
61
61
  new message_source_1.MessageSource().runSyntax(s, scope, filename);
62
62
  }
63
+ const id = (_b = node.findExpressionAfterToken("ID")) === null || _b === void 0 ? void 0 : _b.concatTokens();
64
+ const number = (_c = node.findDirectExpression(Expressions.MessageNumber)) === null || _c === void 0 ? void 0 : _c.concatTokens();
65
+ if ((id === null || id === void 0 ? void 0 : id.startsWith("'")) && number) {
66
+ const messageClass = id.substring(1, id.length - 1).toUpperCase();
67
+ scope.getMSAGReferences().addUsing(filename, node.getFirstToken(), messageClass, number);
68
+ }
63
69
  }
64
70
  }
65
71
  exports.Raise = Raise;
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.100.0";
68
+ return "2.100.1";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.100.0",
3
+ "version": "2.100.1",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",