@abaplint/core 2.95.48 → 2.95.49
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.
|
@@ -6,9 +6,9 @@ const source_1 = require("./source");
|
|
|
6
6
|
const let_1 = require("./let");
|
|
7
7
|
const cond_1 = require("./cond");
|
|
8
8
|
class CondBody {
|
|
9
|
-
runSyntax(node, scope, filename
|
|
9
|
+
runSyntax(node, scope, filename) {
|
|
10
10
|
if (node === undefined) {
|
|
11
|
-
return
|
|
11
|
+
return undefined;
|
|
12
12
|
}
|
|
13
13
|
let scoped = false;
|
|
14
14
|
const l = node.findDirectExpression(Expressions.Let);
|
|
@@ -30,7 +30,7 @@ class CondBody {
|
|
|
30
30
|
if (scoped === true) {
|
|
31
31
|
scope.pop(node.getLastToken().getEnd());
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return type;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.CondBody = CondBody;
|
|
@@ -82,7 +82,7 @@ class Source {
|
|
|
82
82
|
case "COND":
|
|
83
83
|
{
|
|
84
84
|
const foundType = this.determineType(node, scope, filename, targetType);
|
|
85
|
-
const bodyType = new cond_body_1.CondBody().runSyntax(node.findDirectExpression(Expressions.CondBody), scope, filename
|
|
85
|
+
const bodyType = new cond_body_1.CondBody().runSyntax(node.findDirectExpression(Expressions.CondBody), scope, filename);
|
|
86
86
|
if (foundType === undefined || foundType.isGeneric() === true) {
|
|
87
87
|
this.addIfInferred(node, scope, filename, bodyType);
|
|
88
88
|
}
|
package/build/src/registry.js
CHANGED