@abaplint/core 2.85.22 → 2.85.23
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.
|
@@ -11,6 +11,7 @@ const _reference_1 = require("../_reference");
|
|
|
11
11
|
const _object_oriented_1 = require("../_object_oriented");
|
|
12
12
|
class MethodSource {
|
|
13
13
|
runSyntax(node, scope, filename) {
|
|
14
|
+
// todo, rewrite the context finding, and/or restructure the expression?
|
|
14
15
|
const context = new method_call_chain_1.MethodCallChain().runSyntax(node, scope, filename);
|
|
15
16
|
const last = node.getLastChild();
|
|
16
17
|
const first = node.getFirstChild();
|
|
@@ -19,8 +20,11 @@ class MethodSource {
|
|
|
19
20
|
}
|
|
20
21
|
else if (last instanceof nodes_1.ExpressionNode && last.get() instanceof Expressions.MethodName) {
|
|
21
22
|
if (context instanceof basic_1.ObjectReferenceType) {
|
|
22
|
-
|
|
23
|
-
if (id instanceof types_1.ClassDefinition) {
|
|
23
|
+
let id = context.getIdentifier();
|
|
24
|
+
if (!(id instanceof types_1.ClassDefinition)) {
|
|
25
|
+
id = scope.findObjectDefinition(id.getName());
|
|
26
|
+
}
|
|
27
|
+
if (id instanceof types_1.ClassDefinition) { // todo || id instanceof InterfaceDefinition) {
|
|
24
28
|
const methodName = last.concatTokens().toUpperCase();
|
|
25
29
|
const helper = new _object_oriented_1.ObjectOriented(scope);
|
|
26
30
|
const { method: foundMethod } = helper.searchMethodName(id, methodName);
|
|
@@ -18,7 +18,7 @@ class SQLForAllEntries {
|
|
|
18
18
|
if (!(type instanceof basic_1.TableType)) {
|
|
19
19
|
throw new Error("FAE parameter must be table type");
|
|
20
20
|
}
|
|
21
|
-
const name = s.concatTokens();
|
|
21
|
+
const name = s.concatTokens().replace("[]", "");
|
|
22
22
|
scope.setAllowHeaderUse(name);
|
|
23
23
|
}
|
|
24
24
|
}
|
package/build/src/registry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.85.
|
|
3
|
+
"version": "2.85.23",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@microsoft/api-extractor": "^7.19.4",
|
|
49
49
|
"@types/chai": "^4.3.0",
|
|
50
50
|
"@types/mocha": "^9.1.0",
|
|
51
|
-
"@types/node": "^17.0.
|
|
51
|
+
"@types/node": "^17.0.21",
|
|
52
52
|
"chai": "^4.3.6",
|
|
53
53
|
"eslint": "^8.9.0",
|
|
54
54
|
"mocha": "^9.2.1",
|