@abaplint/core 2.113.45 → 2.113.46

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.
@@ -1550,6 +1550,7 @@ declare class DataDefinition extends AbstractObject {
1550
1550
  setDirty(): void;
1551
1551
  findSourceFile(): IFile | undefined;
1552
1552
  hasParserError(): boolean | undefined;
1553
+ listKeys(): string[];
1553
1554
  parse(): IParseResult;
1554
1555
  getTree(): ExpressionNode | undefined;
1555
1556
  private findSQLViewName;
@@ -59,6 +59,17 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
59
59
  hasParserError() {
60
60
  return this.parserError;
61
61
  }
62
+ listKeys() {
63
+ var _a;
64
+ this.parse();
65
+ const ret = [];
66
+ for (const field of ((_a = this.parsedData) === null || _a === void 0 ? void 0 : _a.fields) || []) {
67
+ if (field.key === true) {
68
+ ret.push(field.name);
69
+ }
70
+ }
71
+ return ret;
72
+ }
62
73
  parse() {
63
74
  var _a, _b;
64
75
  if (this.isDirty() === false) {
@@ -67,7 +67,7 @@ class Registry {
67
67
  }
68
68
  static abaplintVersion() {
69
69
  // magic, see build script "version.sh"
70
- return "2.113.45";
70
+ return "2.113.46";
71
71
  }
72
72
  getDDICReferences() {
73
73
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.113.45",
3
+ "version": "2.113.46",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",