@abaplint/transpiler 2.10.75 → 2.10.77

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.
@@ -82,13 +82,30 @@ class TranspileTypes {
82
82
  const list = [];
83
83
  const suffix = {};
84
84
  const asInclude = {};
85
+ /*
86
+ const skipFields: Set<string> = new Set();
87
+
85
88
  for (const c of type.getComponents()) {
86
- list.push(`"` + c.name.toLowerCase() + `": ` + this.toType(c.type));
89
+ if (c.type instanceof abaplint.BasicTypes.StructureType) {
90
+ for (const f of c.type.getComponents()) {
91
+ skipFields.add(f.name.toLowerCase());
92
+ }
93
+ }
94
+ }
95
+ */
96
+ for (const c of type.getComponents()) {
97
+ const lower = c.name.toLowerCase();
98
+ /*
99
+ if (skipFields.has(lower)) {
100
+ continue; // skip fields from nested structures
101
+ }
102
+ */
103
+ list.push(`"` + lower + `": ` + this.toType(c.type));
87
104
  if (c.suffix) {
88
- suffix[c.name.toLowerCase()] = c.suffix;
105
+ suffix[lower] = c.suffix;
89
106
  }
90
107
  if (c.asInclude) {
91
- asInclude[c.name.toLowerCase()] = true;
108
+ asInclude[lower] = true;
92
109
  }
93
110
  }
94
111
  extra = "{\n" + list.join(",\n") + "}";
@@ -1,8 +1,10 @@
1
1
  import * as abaplint from "@abaplint/core";
2
+ /** @uniqueItems true */
2
3
  export type TestMethodList = {
3
4
  object: string;
4
5
  class: string;
5
6
  method: string;
7
+ note?: string;
6
8
  }[];
7
9
  export declare class UnitTest {
8
10
  unitTestScriptOpen(reg: abaplint.IRegistry, _skip?: TestMethodList): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.10.75",
3
+ "version": "2.10.77",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -29,8 +29,8 @@
29
29
  "author": "abaplint",
30
30
  "license": "MIT",
31
31
  "dependencies": {
32
- "@abaplint/core": "^2.113.149",
33
- "source-map": "^0.7.4"
32
+ "@abaplint/core": "^2.113.150",
33
+ "source-map": "^0.7.6"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/chai": "^4.3.20",