@abaplint/core 2.95.8 → 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.8";
66
+ return "2.95.10";
67
67
  }
68
68
  getDDICReferences() {
69
69
  return this.references;
@@ -50,6 +50,9 @@ class XMLConsistency {
50
50
  if (name === undefined) {
51
51
  issues.push(issue_1.Issue.atRow(file, 1, "Name undefined in XML", this.getMetadata().key, this.conf.severity));
52
52
  }
53
+ else if (obj.getDescription() && obj.getDescription().length > 60) {
54
+ issues.push(issue_1.Issue.atRow(file, 1, "Description too long", this.getMetadata().key, this.conf.severity));
55
+ }
53
56
  else if (name !== obj.getName().toUpperCase()) {
54
57
  issues.push(issue_1.Issue.atRow(file, 1, "Name in XML does not match object", this.getMetadata().key, this.conf.severity));
55
58
  }
@@ -62,6 +65,9 @@ class XMLConsistency {
62
65
  if (name === undefined) {
63
66
  issues.push(issue_1.Issue.atRow(file, 1, "Name undefined in XML", this.getMetadata().key, this.conf.severity));
64
67
  }
68
+ else if (obj.getDescription() && obj.getDescription().length > 60) {
69
+ issues.push(issue_1.Issue.atRow(file, 1, "Description too long", this.getMetadata().key, this.conf.severity));
70
+ }
65
71
  else if (name !== obj.getName().toUpperCase()) {
66
72
  issues.push(issue_1.Issue.atRow(file, 1, "Name in XML does not match object", this.getMetadata().key, this.conf.severity));
67
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.95.8",
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,20 +47,20 @@
47
47
  },
48
48
  "homepage": "https://abaplint.org",
49
49
  "devDependencies": {
50
- "@microsoft/api-extractor": "^7.34.0",
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",
57
57
  "c8": "^7.12.0",
58
58
  "source-map-support": "^0.5.21",
59
59
  "ts-json-schema-generator": "^1.2.0",
60
- "typescript": "^4.9.4"
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
  }