@abaplint/core 2.93.35 → 2.93.36

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.
@@ -5698,7 +5698,7 @@ declare class Table extends AbstractObject {
5698
5698
  allowNamespace: boolean;
5699
5699
  };
5700
5700
  setDirty(): void;
5701
- listKeys(): string[];
5701
+ listKeys(reg: IRegistry): string[];
5702
5702
  parseType(reg: IRegistry): AbstractType;
5703
5703
  getTableCategory(): TableCategory | undefined;
5704
5704
  getEnhancementCategory(): EnhancementCategory;
@@ -42,7 +42,7 @@ class Table extends _abstract_object_1.AbstractObject {
42
42
  this.parsedData = undefined;
43
43
  super.setDirty();
44
44
  }
45
- listKeys() {
45
+ listKeys(reg) {
46
46
  if (this.parsedData === undefined) {
47
47
  this.parseXML();
48
48
  }
@@ -51,7 +51,15 @@ class Table extends _abstract_object_1.AbstractObject {
51
51
  }
52
52
  const ret = [];
53
53
  for (const p of this.parsedData.fields) {
54
- if (p.KEYFLAG === "X") {
54
+ if (p.KEYFLAG === "X" && p.FIELDNAME === ".INCLUDE") {
55
+ const lookup = new ddic_1.DDIC(reg).lookupTableOrView(p.PRECFIELD).type;
56
+ if (lookup instanceof Types.StructureType) {
57
+ for (const c of lookup.getComponents()) {
58
+ ret.push(c.name);
59
+ }
60
+ }
61
+ }
62
+ else if (p.KEYFLAG === "X") {
55
63
  ret.push(p.FIELDNAME);
56
64
  }
57
65
  }
@@ -63,7 +63,7 @@ class Registry {
63
63
  }
64
64
  static abaplintVersion() {
65
65
  // magic, see build script "version.sh"
66
- return "2.93.35";
66
+ return "2.93.36";
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.93.35",
3
+ "version": "2.93.36",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -49,7 +49,7 @@
49
49
  "@microsoft/api-extractor": "^7.32.0",
50
50
  "@types/chai": "^4.3.3",
51
51
  "@types/mocha": "^10.0.0",
52
- "@types/node": "^18.8.1",
52
+ "@types/node": "^18.8.2",
53
53
  "chai": "^4.3.6",
54
54
  "eslint": "^8.24.0",
55
55
  "mocha": "^10.0.0",
@@ -59,7 +59,7 @@
59
59
  "typescript": "^4.8.4"
60
60
  },
61
61
  "dependencies": {
62
- "fast-xml-parser": "^4.0.10",
62
+ "fast-xml-parser": "^4.0.11",
63
63
  "json5": "^2.2.1",
64
64
  "vscode-languageserver-types": "^3.17.2"
65
65
  }