@abaplint/core 2.94.4 → 2.94.5
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.
|
@@ -675,6 +675,7 @@ class BasicTypes {
|
|
|
675
675
|
}
|
|
676
676
|
resolveConstantValue(expr) {
|
|
677
677
|
var _a, _b;
|
|
678
|
+
// todo: rewrite this method
|
|
678
679
|
if (!(expr.get() instanceof Expressions.SimpleFieldChain)) {
|
|
679
680
|
throw new Error("resolveConstantValue");
|
|
680
681
|
}
|
|
@@ -688,6 +689,9 @@ class BasicTypes {
|
|
|
688
689
|
this.scope.addReference(firstToken, found, _reference_1.ReferenceType.DataReadReference, this.filename);
|
|
689
690
|
return val;
|
|
690
691
|
}
|
|
692
|
+
else if ((found === null || found === void 0 ? void 0 : found.getType()) instanceof basic_1.StructureType) {
|
|
693
|
+
this.scope.addReference(firstToken, found, _reference_1.ReferenceType.DataReadReference, this.filename);
|
|
694
|
+
}
|
|
691
695
|
return undefined;
|
|
692
696
|
}
|
|
693
697
|
else if (firstNode.get() instanceof Expressions.ClassName
|
|
@@ -4,12 +4,17 @@ exports.MethodCallBody = void 0;
|
|
|
4
4
|
const Expressions = require("../../2_statements/expressions");
|
|
5
5
|
const method_parameters_1 = require("./method_parameters");
|
|
6
6
|
const source_1 = require("./source");
|
|
7
|
+
const method_call_param_1 = require("./method_call_param");
|
|
7
8
|
class MethodCallBody {
|
|
8
9
|
runSyntax(node, scope, filename, method) {
|
|
9
10
|
const parameters = node.findDirectExpression(Expressions.MethodParameters);
|
|
10
11
|
if (parameters) {
|
|
11
12
|
new method_parameters_1.MethodParameters().runSyntax(parameters, scope, method, filename);
|
|
12
13
|
}
|
|
14
|
+
const param = node.findDirectExpression(Expressions.MethodCallParam);
|
|
15
|
+
if (param) {
|
|
16
|
+
new method_call_param_1.MethodCallParam().runSyntax(param, scope, method, filename);
|
|
17
|
+
}
|
|
13
18
|
for (const s of node.findDirectExpressions(Expressions.Source)) {
|
|
14
19
|
new source_1.Source().runSyntax(s, scope, filename);
|
|
15
20
|
}
|
package/build/src/registry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.94.
|
|
3
|
+
"version": "2.94.5",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@microsoft/api-extractor": "^7.33.7",
|
|
50
50
|
"@types/chai": "^4.3.4",
|
|
51
51
|
"@types/mocha": "^10.0.1",
|
|
52
|
-
"@types/node": "^18.11.
|
|
52
|
+
"@types/node": "^18.11.15",
|
|
53
53
|
"chai": "^4.3.7",
|
|
54
54
|
"eslint": "^8.29.0",
|
|
55
55
|
"mocha": "^10.2.0",
|