@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.
@@ -68,7 +68,7 @@ class Registry {
68
68
  }
69
69
  static abaplintVersion() {
70
70
  // magic, see build script "version.sh"
71
- return "2.84.1";
71
+ return "2.84.2";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
@@ -517,7 +517,14 @@ ${indentation}`);
517
517
  }
518
518
  const sources = node.findDirectExpressions(Expressions.Source);
519
519
  const id = sources[0].concatTokens();
520
- const number = sources[1].concatTokens();
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.84.1",
3
+ "version": "2.84.2",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",