@abaplint/transpiler 2.11.57 → 2.11.59
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.
- package/build/src/traversal.js +14 -1
- package/package.json +2 -2
package/build/src/traversal.js
CHANGED
|
@@ -233,7 +233,20 @@ class Traversal {
|
|
|
233
233
|
for (const p of m.getParameters().getAll()) {
|
|
234
234
|
const type = transpile_types_1.TranspileTypes.toType(p.getType());
|
|
235
235
|
const optional = m.getParameters().getOptional().includes(p.getName()) ? "X" : " ";
|
|
236
|
-
|
|
236
|
+
let pKind = "";
|
|
237
|
+
if (pKind === "") {
|
|
238
|
+
pKind = m.getParameters().getImporting().find((t) => { return t.getName() === p.getName(); }) ? "I" : "";
|
|
239
|
+
}
|
|
240
|
+
if (pKind === "") {
|
|
241
|
+
pKind = m.getParameters().getChanging().find((t) => { return t.getName() === p.getName(); }) ? "C" : "";
|
|
242
|
+
}
|
|
243
|
+
if (pKind === "") {
|
|
244
|
+
pKind = m.getParameters().getExporting().find((t) => { return t.getName() === p.getName(); }) ? "E" : "";
|
|
245
|
+
}
|
|
246
|
+
if (pKind === "") {
|
|
247
|
+
pKind = m.getParameters().getReturning()?.getName() === p.getName() ? "R" : "";
|
|
248
|
+
}
|
|
249
|
+
parameters.push(`"${p.getName().toUpperCase()}": {"type": () => {return ${type};}, "is_optional": "${optional}", "parm_kind": "${pKind}", "type_name": "${p.getType().constructor.name}"}`);
|
|
237
250
|
}
|
|
238
251
|
methods.push(`"${m.getName().toUpperCase()}": {"visibility": "${this.mapVisibility(m.getVisibility())}", "parameters": {${parameters.join(", ")}}}`);
|
|
239
252
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.59",
|
|
4
4
|
"description": "Transpiler",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"author": "abaplint",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@abaplint/core": "^2.113.
|
|
32
|
+
"@abaplint/core": "^2.113.188",
|
|
33
33
|
"source-map": "^0.7.6"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|