@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;
|
package/build/src/registry.js
CHANGED