@abaplint/transpiler-cli 2.11.41 → 2.11.42
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/bundle.js +6 -10
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -25803,7 +25803,6 @@ class MethodCallParam {
|
|
|
25803
25803
|
new method_parameters_1.MethodParameters().runSyntax(child, input, method);
|
|
25804
25804
|
}
|
|
25805
25805
|
else {
|
|
25806
|
-
// console.dir(child);
|
|
25807
25806
|
const message = "MethodCallParam, unexpected child";
|
|
25808
25807
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
25809
25808
|
return;
|
|
@@ -26130,9 +26129,13 @@ class MethodParameters {
|
|
|
26130
26129
|
for (const i of method.getParameters().getImporting()) {
|
|
26131
26130
|
if (i.getName().toUpperCase() === name) {
|
|
26132
26131
|
targetType = i.getType();
|
|
26132
|
+
break;
|
|
26133
26133
|
}
|
|
26134
26134
|
}
|
|
26135
26135
|
}
|
|
26136
|
+
else {
|
|
26137
|
+
targetType = method;
|
|
26138
|
+
}
|
|
26136
26139
|
let sourceType = source_1.Source.runSyntax(source, input, targetType);
|
|
26137
26140
|
if (sourceType === undefined) {
|
|
26138
26141
|
if (method instanceof basic_1.VoidType) {
|
|
@@ -53791,7 +53794,7 @@ class Registry {
|
|
|
53791
53794
|
}
|
|
53792
53795
|
static abaplintVersion() {
|
|
53793
53796
|
// magic, see build script "version.sh"
|
|
53794
|
-
return "2.113.
|
|
53797
|
+
return "2.113.182";
|
|
53795
53798
|
}
|
|
53796
53799
|
getDDICReferences() {
|
|
53797
53800
|
return this.ddicReferences;
|
|
@@ -81630,17 +81633,10 @@ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/tr
|
|
|
81630
81633
|
const transpile_types_1 = __webpack_require__(/*! ../transpile_types */ "./node_modules/@abaplint/transpiler/build/src/transpile_types.js");
|
|
81631
81634
|
class TypeNameOrInfer {
|
|
81632
81635
|
findType(node, traversal) {
|
|
81633
|
-
// let type: AbstractType | undefined;
|
|
81634
81636
|
const scope = traversal.findCurrentScopeByToken(node.getFirstToken());
|
|
81635
|
-
// if (node.concatTokens() === "#") {
|
|
81636
81637
|
const type = traversal.lookupInferred(node, scope);
|
|
81637
|
-
/*
|
|
81638
|
-
} else {
|
|
81639
|
-
type = traversal.lookupType(node.getFirstChild() as Nodes.ExpressionNode, scope);
|
|
81640
|
-
}
|
|
81641
|
-
*/
|
|
81642
81638
|
if (type === undefined) {
|
|
81643
|
-
throw new Error("TypeNameOrInfer, type not found: " + node.concatTokens());
|
|
81639
|
+
throw new Error("TypeNameOrInfer, type not found: " + node.concatTokens() + ", " + traversal.getCurrentObject().getName() + " line " + node.getFirstToken().getStart().getRow());
|
|
81644
81640
|
}
|
|
81645
81641
|
return type;
|
|
81646
81642
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.42",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"author": "abaplint",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@abaplint/core": "^2.113.
|
|
31
|
-
"@abaplint/transpiler": "^2.11.
|
|
30
|
+
"@abaplint/core": "^2.113.182",
|
|
31
|
+
"@abaplint/transpiler": "^2.11.42",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^24.3.0",
|
|
34
34
|
"@types/progress": "^2.0.7",
|