@abaplint/core 2.113.27 → 2.113.28

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.
@@ -6593,7 +6593,7 @@ export { Structures }
6593
6593
  declare class StructureType extends AbstractType {
6594
6594
  private readonly indexed;
6595
6595
  private readonly components;
6596
- constructor(components: IStructureComponent[], qualifiedName?: string, ddicName?: string);
6596
+ constructor(components: IStructureComponent[], qualifiedName?: string, ddicName?: string, description?: string);
6597
6597
  getComponents(): IStructureComponent[];
6598
6598
  getComponentByName(name: string): AbstractType | undefined;
6599
6599
  toText(level: number): string;
@@ -6756,7 +6756,7 @@ declare class TableType extends AbstractObject {
6756
6756
  declare class TableType_2 extends AbstractType {
6757
6757
  private readonly rowType;
6758
6758
  private readonly options;
6759
- constructor(rowType: AbstractType, options: ITableOptions, qualifiedName?: string);
6759
+ constructor(rowType: AbstractType, options: ITableOptions, qualifiedName?: string, description?: string);
6760
6760
  getOptions(): ITableOptions;
6761
6761
  isWithHeader(): boolean;
6762
6762
  getAccessType(): TableAccessType | undefined;
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StructureType = void 0;
4
4
  const _abstract_type_1 = require("./_abstract_type");
5
5
  class StructureType extends _abstract_type_1.AbstractType {
6
- constructor(components, qualifiedName, ddicName) {
6
+ constructor(components, qualifiedName, ddicName, description) {
7
7
  super({
8
8
  qualifiedName: qualifiedName,
9
9
  ddicName: ddicName,
10
+ description: description,
10
11
  });
11
12
  if (components.length === 0) {
12
13
  throw new Error("Structure does not contain any components");
@@ -17,9 +17,12 @@ var TableKeyType;
17
17
  TableKeyType["empty"] = "EMPTY";
18
18
  })(TableKeyType || (exports.TableKeyType = TableKeyType = {}));
19
19
  class TableType extends _abstract_type_1.AbstractType {
20
- constructor(rowType, options, qualifiedName) {
20
+ constructor(rowType, options, qualifiedName, description) {
21
21
  var _a;
22
- super({ qualifiedName: qualifiedName });
22
+ super({
23
+ qualifiedName: qualifiedName,
24
+ description: description,
25
+ });
23
26
  this.rowType = rowType;
24
27
  this.options = options;
25
28
  if (((_a = options.primaryKey) === null || _a === void 0 ? void 0 : _a.type) === TableAccessType.standard && options.primaryKey.isUnique === true) {
@@ -110,7 +110,7 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
110
110
  }
111
111
  findDescription() {
112
112
  var _a;
113
- const match = (_a = this.findSourceFile()) === null || _a === void 0 ? void 0 : _a.getRaw().match(/@EndUserText\.label: '([\w ]+)'/);
113
+ const match = (_a = this.findSourceFile()) === null || _a === void 0 ? void 0 : _a.getRaw().match(/@EndUserText\.label: '([\w,.: ]+)'/);
114
114
  if (match) {
115
115
  return match[1];
116
116
  }
@@ -247,7 +247,7 @@ class Table extends _abstract_object_1.AbstractObject {
247
247
  return new Types.UnknownType("Table/Structure " + this.getName() + " does not contain any components");
248
248
  }
249
249
  reg.getDDICReferences().setUsing(this, references);
250
- return new Types.StructureType(components, this.getName(), this.getName());
250
+ return new Types.StructureType(components, this.getName(), this.getName(), this.getDescription());
251
251
  }
252
252
  getTableCategory() {
253
253
  var _a;
@@ -103,34 +103,34 @@ class TableType extends _abstract_object_1.AbstractObject {
103
103
  }
104
104
  else if (this.parsedXML.rowkind === "S") {
105
105
  const lookup = ddic.lookupTableOrView(this.parsedXML.rowtype);
106
- type = new Types.TableType(lookup.type, tableOptions, this.getName());
106
+ type = new Types.TableType(lookup.type, tableOptions, this.getName(), this.getDescription());
107
107
  if (lookup.object) {
108
108
  references.push({ object: lookup.object });
109
109
  }
110
110
  }
111
111
  else if (this.parsedXML.rowkind === "E") {
112
112
  const lookup = ddic.lookupDataElement(this.parsedXML.rowtype);
113
- type = new Types.TableType(lookup.type, tableOptions, this.getName());
113
+ type = new Types.TableType(lookup.type, tableOptions, this.getName(), this.getDescription());
114
114
  if (lookup.object) {
115
115
  references.push({ object: lookup.object });
116
116
  }
117
117
  }
118
118
  else if (this.parsedXML.rowkind === "L") {
119
119
  const lookup = ddic.lookupTableType(this.parsedXML.rowtype);
120
- type = new Types.TableType(lookup.type, tableOptions, this.getName());
120
+ type = new Types.TableType(lookup.type, tableOptions, this.getName(), this.getDescription());
121
121
  if (lookup.object) {
122
122
  references.push({ object: lookup.object });
123
123
  }
124
124
  }
125
125
  else if (this.parsedXML.rowkind === "R" && this.parsedXML.rowtype === "OBJECT") {
126
- type = new Types.TableType(new basic_1.GenericObjectReferenceType(), tableOptions, this.getName());
126
+ type = new Types.TableType(new basic_1.GenericObjectReferenceType(), tableOptions, this.getName(), this.getDescription());
127
127
  }
128
128
  else if (this.parsedXML.rowkind === "R" && this.parsedXML.rowtype === "DATA") {
129
- type = new Types.TableType(new basic_1.DataReference(new Types.DataType()), tableOptions, this.getName());
129
+ type = new Types.TableType(new basic_1.DataReference(new Types.DataType()), tableOptions, this.getName(), this.getDescription());
130
130
  }
131
131
  else if (this.parsedXML.rowkind === "R" && this.parsedXML.rowtype !== undefined) {
132
132
  const lookup = ddic.lookupObject(this.parsedXML.rowtype);
133
- type = new Types.TableType(lookup.type, tableOptions, this.getName());
133
+ type = new Types.TableType(lookup.type, tableOptions, this.getName(), this.getDescription());
134
134
  if (lookup.object) {
135
135
  references.push({ object: lookup.object });
136
136
  }
@@ -146,7 +146,7 @@ class TableType extends _abstract_object_1.AbstractObject {
146
146
  decimals: this.parsedXML.decimals,
147
147
  infoText: this.getName(),
148
148
  });
149
- type = new Types.TableType(row, tableOptions, this.getName());
149
+ type = new Types.TableType(row, tableOptions, this.getName(), this.getDescription());
150
150
  }
151
151
  }
152
152
  else {
@@ -67,7 +67,7 @@ class Registry {
67
67
  }
68
68
  static abaplintVersion() {
69
69
  // magic, see build script "version.sh"
70
- return "2.113.27";
70
+ return "2.113.28";
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.27",
3
+ "version": "2.113.28",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",