@abaplint/core 2.113.31 → 2.113.33

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.
@@ -1630,7 +1630,7 @@ declare class DDIC {
1630
1630
  } | undefined;
1631
1631
  /** lookup with voiding and unknown types */
1632
1632
  lookup(name: string): ILookupResult;
1633
- lookupDomain(name: string, dataElement?: string): ILookupResult;
1633
+ lookupDomain(name: string, dataElement?: string, description?: string): ILookupResult;
1634
1634
  lookupDataElement(name: string | undefined): ILookupResult;
1635
1635
  lookupTableOrView(name: string | undefined): ILookupResult;
1636
1636
  /** this method only looks up the object, does not parse the type */
@@ -1810,7 +1810,7 @@ declare class Domain extends AbstractObject {
1810
1810
  allowNamespace: boolean;
1811
1811
  };
1812
1812
  setDirty(): void;
1813
- parseType(reg: IRegistry, dataElement?: string): AbstractType;
1813
+ parseType(reg: IRegistry, dataElement?: string, description?: string): AbstractType;
1814
1814
  parse(): {
1815
1815
  updated: boolean;
1816
1816
  runtime: number;
@@ -310,6 +310,9 @@ class StatementFlow {
310
310
  graph.addEdge(caseName, graph.getEnd(), flow_graph_1.FLOW_EDGE_TYPE.undefined);
311
311
  }
312
312
  }
313
+ else if (type instanceof Structures.Define) {
314
+ // do nothing
315
+ }
313
316
  else {
314
317
  console.dir("StatementFlow,todo, " + n.get().constructor.name);
315
318
  }
package/build/src/ddic.js CHANGED
@@ -199,10 +199,10 @@ class DDIC {
199
199
  return { type: new Types.VoidType(name) };
200
200
  }
201
201
  }
202
- lookupDomain(name, dataElement) {
202
+ lookupDomain(name, dataElement, description) {
203
203
  const found = this.reg.getObject("DOMA", name);
204
204
  if (found) {
205
- return { type: found.parseType(this.reg, dataElement), object: found };
205
+ return { type: found.parseType(this.reg, dataElement, description), object: found };
206
206
  }
207
207
  else if (this.reg.inErrorNamespace(name)) {
208
208
  return { type: new Types.UnknownType(name + ", lookupDomain"), object: undefined };
@@ -51,7 +51,7 @@ class DataElement extends _abstract_object_1.AbstractObject {
51
51
  lookup = { type: new Types.UnknownType("DOMNAME unexpectely empty in " + this.getName()) };
52
52
  }
53
53
  else {
54
- lookup = ddic.lookupDomain(this.parsedXML.domname, this.getName());
54
+ lookup = ddic.lookupDomain(this.parsedXML.domname, this.getName(), this.getDescription());
55
55
  }
56
56
  }
57
57
  else if (this.parsedXML.refkind === "R") {
@@ -27,7 +27,7 @@ class Domain extends _abstract_object_1.AbstractObject {
27
27
  this.parsedXML = undefined;
28
28
  super.setDirty();
29
29
  }
30
- parseType(reg, dataElement) {
30
+ parseType(reg, dataElement, description) {
31
31
  // dont cache the DOMA parsed type, they are cached on DTEL level
32
32
  // also note that the type carries the name of the DTEL
33
33
  if (this.parsedXML === undefined) {
@@ -45,6 +45,7 @@ class Domain extends _abstract_object_1.AbstractObject {
45
45
  qualifiedName: dataElement,
46
46
  conversionExit: this.parsedXML.conversionExit,
47
47
  ddicName: dataElement,
48
+ description: description,
48
49
  });
49
50
  }
50
51
  parse() {
@@ -67,7 +67,7 @@ class Registry {
67
67
  }
68
68
  static abaplintVersion() {
69
69
  // magic, see build script "version.sh"
70
- return "2.113.31";
70
+ return "2.113.33";
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.31",
3
+ "version": "2.113.33",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",