@abaplint/core 2.83.9 → 2.83.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.
@@ -4080,6 +4080,7 @@ declare class ParenRightW extends Token {
4080
4080
  declare type ParsedDataDefinition = {
4081
4081
  sqlViewName: string | undefined;
4082
4082
  fields: {
4083
+ key: boolean;
4083
4084
  name: string;
4084
4085
  annotations: string[];
4085
4086
  }[];
@@ -71,7 +71,9 @@ class CDSLexer {
71
71
  if (next === "\n") {
72
72
  mode = Mode.Default;
73
73
  }
74
- continue;
74
+ else {
75
+ continue;
76
+ }
75
77
  }
76
78
  else if (mode === Mode.Default && next === "/" && nextNext === "/") {
77
79
  mode = Mode.SingleLineComment;
@@ -107,6 +107,7 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
107
107
  this.parsedData.fields.push({
108
108
  name: name,
109
109
  annotations: annotations,
110
+ key: e.findDirectTokenByText("KEY") !== undefined,
110
111
  });
111
112
  }
112
113
  }
@@ -68,7 +68,7 @@ class Registry {
68
68
  }
69
69
  static abaplintVersion() {
70
70
  // magic, see build script "version.sh"
71
- return "2.83.9";
71
+ return "2.83.10";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.83.9",
3
+ "version": "2.83.10",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -45,10 +45,10 @@
45
45
  },
46
46
  "homepage": "https://abaplint.org",
47
47
  "devDependencies": {
48
- "@microsoft/api-extractor": "^7.19.2",
48
+ "@microsoft/api-extractor": "^7.19.3",
49
49
  "@types/chai": "^4.3.0",
50
50
  "@types/mocha": "^9.0.0",
51
- "@types/node": "^17.0.4",
51
+ "@types/node": "^17.0.5",
52
52
  "chai": "^4.3.4",
53
53
  "eslint": "^8.5.0",
54
54
  "mocha": "^9.1.3",