@abaplint/transpiler 2.13.25 → 2.13.26

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.
@@ -63,17 +63,21 @@ class DatabaseSetup {
63
63
  insert.push(...populateTables.insertWWWPARAMS(obj));
64
64
  }
65
65
  else if (obj instanceof abaplint.Objects.Class
66
- || obj instanceof abaplint.Objects.Interface) {
66
+ || obj instanceof abaplint.Objects.Interface
67
+ || obj instanceof abaplint.Objects.Program) {
67
68
  if (options?.populateTables?.reposrc !== false) {
68
69
  insert.push(populateTables.insertREPOSRC(obj));
69
70
  }
70
- if (options?.populateTables?.seosubco !== false) {
71
+ if ((obj instanceof abaplint.Objects.Class || obj instanceof abaplint.Objects.Interface)
72
+ && options?.populateTables?.seosubco !== false) {
71
73
  insert.push(...populateTables.insertSEOSUBCO(obj));
72
74
  }
73
- if (options?.populateTables?.seosubcodf !== false) {
75
+ if ((obj instanceof abaplint.Objects.Class || obj instanceof abaplint.Objects.Interface)
76
+ && options?.populateTables?.seosubcodf !== false) {
74
77
  insert.push(...populateTables.insertSEOSUBCODF(obj));
75
78
  }
76
- if (options?.populateTables?.seosubcotx !== false) {
79
+ if ((obj instanceof abaplint.Objects.Class || obj instanceof abaplint.Objects.Interface)
80
+ && options?.populateTables?.seosubcotx !== false) {
77
81
  insert.push(...populateTables.insertSEOSUBCOTX(obj));
78
82
  }
79
83
  }
@@ -9,7 +9,7 @@ export declare class PopulateTables {
9
9
  private readonly hasTADIR;
10
10
  private readonly hasWWWPARAMS;
11
11
  constructor(reg: abaplint.IRegistry);
12
- insertREPOSRC(obj: abaplint.Objects.Class | abaplint.Objects.Interface): string;
12
+ insertREPOSRC(obj: abaplint.Objects.Class | abaplint.Objects.Interface | abaplint.Objects.Program): string;
13
13
  insertT100(msag: abaplint.Objects.MessageClass): string[];
14
14
  insertSEOSUBCO(obj: abaplint.Objects.Class | abaplint.Objects.Interface): string[];
15
15
  insertSEOSUBCODF(obj: abaplint.Objects.Class | abaplint.Objects.Interface): string[];
@@ -16,7 +16,7 @@ class ReadReportTranspiler {
16
16
  if (stateNode) {
17
17
  options.push("state: " + new expressions_1.SourceTranspiler().transpile(stateNode, traversal).getCode());
18
18
  }
19
- return new chunk_1.Chunk().appendString(`abap.statements.readReport(`)
19
+ return new chunk_1.Chunk().appendString(`await abap.statements.readReport(`)
20
20
  .appendChunk(reportChunk)
21
21
  .appendString(", {" + options.join(",") + "}")
22
22
  .appendString(");");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.13.25",
3
+ "version": "2.13.26",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",