@abaplint/core 2.95.9 → 2.95.10

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.
@@ -7,7 +7,7 @@ const tokens_1 = require("../../1_lexer/tokens");
7
7
  class Throw extends combi_1.Expression {
8
8
  getRunnable() {
9
9
  // todo, MESSAGE
10
- return (0, combi_1.seq)("THROW", (0, combi_1.opt)("RESUMABLE"), _1.ClassName, (0, combi_1.tok)(tokens_1.ParenLeftW), (0, combi_1.opt)((0, combi_1.alt)(_1.Source, _1.ParameterListS)), (0, combi_1.tok)(tokens_1.WParenRightW));
10
+ return (0, combi_1.seq)("THROW", (0, combi_1.opt)("RESUMABLE"), _1.ClassName, (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenLeftW), (0, combi_1.tok)(tokens_1.ParenLeft)), (0, combi_1.opt)((0, combi_1.alt)(_1.Source, _1.ParameterListS)), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WParenRightW), (0, combi_1.tok)(tokens_1.ParenRightW)));
11
11
  }
12
12
  }
13
13
  exports.Throw = Throw;
@@ -29,6 +29,9 @@ class Cast {
29
29
  if (found === undefined && scope.getDDIC().inErrorNamespace(typeName) === false) {
30
30
  tt = new basic_1.VoidType(typeName);
31
31
  }
32
+ else if (typeName.toUpperCase() === "OBJECT") {
33
+ return new basic_1.GenericObjectReferenceType();
34
+ }
32
35
  else if (found === undefined) {
33
36
  // todo, this should be an UnknownType instead?
34
37
  throw new Error("Type \"" + typeName + "\" not found in scope, Cast");
@@ -63,7 +63,7 @@ class Registry {
63
63
  }
64
64
  static abaplintVersion() {
65
65
  // magic, see build script "version.sh"
66
- return "2.95.9";
66
+ return "2.95.10";
67
67
  }
68
68
  getDDICReferences() {
69
69
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.95.9",
3
+ "version": "2.95.10",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -47,10 +47,10 @@
47
47
  },
48
48
  "homepage": "https://abaplint.org",
49
49
  "devDependencies": {
50
- "@microsoft/api-extractor": "^7.34.2",
50
+ "@microsoft/api-extractor": "^7.34.3",
51
51
  "@types/chai": "^4.3.4",
52
52
  "@types/mocha": "^10.0.1",
53
- "@types/node": "^18.11.18",
53
+ "@types/node": "^18.11.19",
54
54
  "chai": "^4.3.7",
55
55
  "eslint": "^8.33.0",
56
56
  "mocha": "^10.2.0",
@@ -60,7 +60,7 @@
60
60
  "typescript": "^4.9.5"
61
61
  },
62
62
  "dependencies": {
63
- "fast-xml-parser": "^4.0.15",
63
+ "fast-xml-parser": "^4.1.1",
64
64
  "json5": "^2.2.3",
65
65
  "vscode-languageserver-types": "^3.17.2"
66
66
  }