@abaplint/core 2.102.4 → 2.102.5

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.
@@ -303,6 +303,13 @@ class TypeUtils {
303
303
  return false;
304
304
  }
305
305
  }
306
+ else if (source instanceof basic_1.ObjectReferenceType) {
307
+ if (target instanceof basic_1.XSequenceType
308
+ || target instanceof basic_1.IntegerType
309
+ || target instanceof basic_1.XStringType) {
310
+ return false;
311
+ }
312
+ }
306
313
  else if (source instanceof basic_1.XStringType) {
307
314
  if (target instanceof basic_1.CLikeType
308
315
  || target instanceof basic_1.IntegerType
@@ -15,10 +15,10 @@ class FloatingPointType extends _abstract_type_1.AbstractType {
15
15
  return this.length;
16
16
  }
17
17
  toText() {
18
- return "```n LENGTH " + this.getLength() + "```";
18
+ return "```f LENGTH " + this.getLength() + "```";
19
19
  }
20
20
  toABAP() {
21
- return "n LENGTH " + this.getLength();
21
+ return "f LENGTH " + this.getLength();
22
22
  }
23
23
  isGeneric() {
24
24
  return false;
@@ -39,25 +39,23 @@ class TableType extends _abstract_object_1.AbstractObject {
39
39
  keyFields: [],
40
40
  name: "primary_key",
41
41
  };
42
- for (const f of ((_c = this.parsedXML) === null || _c === void 0 ? void 0 : _c.dd42v) || []) {
43
- if (f.keyname === "") {
44
- primaryKey.keyFields.push(f.keyfield);
45
- }
46
- }
47
42
  }
48
- else if (((_d = this.parsedXML) === null || _d === void 0 ? void 0 : _d.accessmode) === "H") {
43
+ else if (((_c = this.parsedXML) === null || _c === void 0 ? void 0 : _c.accessmode) === "H") {
49
44
  primaryKey = {
50
- isUnique: ((_e = this.parsedXML) === null || _e === void 0 ? void 0 : _e.keykind) === "U",
45
+ isUnique: ((_d = this.parsedXML) === null || _d === void 0 ? void 0 : _d.keykind) === "U",
51
46
  type: basic_1.TableAccessType.hashed,
52
47
  keyFields: [],
53
48
  name: "primary_key",
54
49
  };
55
- for (const f of ((_f = this.parsedXML) === null || _f === void 0 ? void 0 : _f.dd42v) || []) {
56
- if (f.keyname === "") {
57
- primaryKey.keyFields.push(f.keyfield);
58
- }
50
+ }
51
+ for (const f of ((_e = this.parsedXML) === null || _e === void 0 ? void 0 : _e.dd42v) || []) {
52
+ if (f.keyname === "") {
53
+ primaryKey === null || primaryKey === void 0 ? void 0 : primaryKey.keyFields.push(f.keyfield);
59
54
  }
60
55
  }
56
+ if (((_f = this.parsedXML) === null || _f === void 0 ? void 0 : _f.keydef) === "T" && (primaryKey === null || primaryKey === void 0 ? void 0 : primaryKey.keyFields.length) === 0) {
57
+ primaryKey === null || primaryKey === void 0 ? void 0 : primaryKey.keyFields.push("table_line");
58
+ }
61
59
  const tableOptions = {
62
60
  withHeader: false,
63
61
  keyType: Types.TableKeyType.user,
@@ -173,6 +171,7 @@ class TableType extends _abstract_object_1.AbstractObject {
173
171
  this.parsedXML.accessmode = dd40v.ACCESSMODE;
174
172
  this.parsedXML.keykind = dd40v.KEYKIND;
175
173
  this.parsedXML.ddtext = dd40v.DDTEXT;
174
+ this.parsedXML.keydef = dd40v.KEYDEF;
176
175
  for (const x of (0, xml_utils_1.xmlToArray)((_a = values.DD42V) === null || _a === void 0 ? void 0 : _a.DD42V)) {
177
176
  this.parsedXML.dd42v.push({
178
177
  keyname: x.SECKEYNAME || "",
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.102.4";
68
+ return "2.102.5";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.102.4",
3
+ "version": "2.102.5",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",