@abaplint/transpiler-cli 2.11.57 → 2.11.58

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.
Files changed (2) hide show
  1. package/build/bundle.js +14 -1
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -91071,7 +91071,20 @@ class Traversal {
91071
91071
  for (const p of m.getParameters().getAll()) {
91072
91072
  const type = transpile_types_1.TranspileTypes.toType(p.getType());
91073
91073
  const optional = m.getParameters().getOptional().includes(p.getName()) ? "X" : " ";
91074
- parameters.push(`"${p.getName().toUpperCase()}": {"type": () => {return ${type};}, "is_optional": "${optional}", "type_name": "${p.getType().constructor.name}"}`);
91074
+ let pKind = "";
91075
+ if (pKind === "") {
91076
+ pKind = m.getParameters().getImporting().find((t) => { return t.getName() === p.getName(); }) ? "I" : "";
91077
+ }
91078
+ if (pKind === "") {
91079
+ pKind = m.getParameters().getChanging().find((t) => { return t.getName() === p.getName(); }) ? "C" : "";
91080
+ }
91081
+ if (pKind === "") {
91082
+ pKind = m.getParameters().getExporting().find((t) => { return t.getName() === p.getName(); }) ? "E" : "";
91083
+ }
91084
+ if (pKind === "") {
91085
+ pKind = m.getParameters().getReturning()?.getName() === p.getName() ? "R" : "";
91086
+ }
91087
+ parameters.push(`"${p.getName().toUpperCase()}": {"type": () => {return ${type};}, "is_optional": "${optional}", "parm_kind": "${pKind}", "type_name": "${p.getType().constructor.name}"}`);
91075
91088
  }
91076
91089
  methods.push(`"${m.getName().toUpperCase()}": {"visibility": "${this.mapVisibility(m.getVisibility())}", "parameters": {${parameters.join(", ")}}}`);
91077
91090
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.11.57",
3
+ "version": "2.11.58",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
30
  "@abaplint/core": "^2.113.187",
31
- "@abaplint/transpiler": "^2.11.57",
31
+ "@abaplint/transpiler": "^2.11.58",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.3.0",
34
34
  "@types/progress": "^2.0.7",