@abaplint/core 2.84.1 → 2.84.2
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.
package/build/src/registry.js
CHANGED
|
@@ -517,7 +517,14 @@ ${indentation}`);
|
|
|
517
517
|
}
|
|
518
518
|
const sources = node.findDirectExpressions(Expressions.Source);
|
|
519
519
|
const id = sources[0].concatTokens();
|
|
520
|
-
const
|
|
520
|
+
const numberExpression = node.findExpressionAfterToken("NUMBER");
|
|
521
|
+
if (numberExpression === undefined) {
|
|
522
|
+
throw "downport raiseException, could not find number";
|
|
523
|
+
}
|
|
524
|
+
let number = numberExpression.concatTokens();
|
|
525
|
+
if (numberExpression.get() instanceof Expressions.MessageNumber) {
|
|
526
|
+
number = "'" + number + "'";
|
|
527
|
+
}
|
|
521
528
|
const className = ((_a = node.findDirectExpression(Expressions.ClassName)) === null || _a === void 0 ? void 0 : _a.concatTokens()) || "ERROR";
|
|
522
529
|
const uniqueName1 = this.uniqueName(node.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
|
|
523
530
|
const uniqueName2 = this.uniqueName(node.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
|