@abaplint/core 2.85.6 → 2.85.7
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.
|
@@ -8,9 +8,10 @@ class MethodSource extends combi_1.Expression {
|
|
|
8
8
|
getRunnable() {
|
|
9
9
|
const mname = (0, combi_1.alt)(_1.MethodName, _1.Dynamic);
|
|
10
10
|
const cname = (0, combi_1.alt)(_1.FieldChain, _1.MethodCallChain, _1.Dynamic);
|
|
11
|
-
|
|
11
|
+
// this is a bit tricky, this part is required as FieldChain takes a AttributeName
|
|
12
|
+
const stati = (0, combi_1.seq)(_1.ClassName, (0, combi_1.tok)(tokens_1.StaticArrow), mname);
|
|
12
13
|
const part1 = (0, combi_1.seq)(cname, (0, combi_1.alt)((0, combi_1.tok)(tokens_1.InstanceArrow), (0, combi_1.tok)(tokens_1.StaticArrow)));
|
|
13
|
-
return (0, combi_1.
|
|
14
|
+
return (0, combi_1.alt)(stati, (0, combi_1.seq)((0, combi_1.starPrio)(part1), mname));
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
exports.MethodSource = MethodSource;
|
|
@@ -53,8 +53,8 @@ class TypeUtils {
|
|
|
53
53
|
}
|
|
54
54
|
static isAssignable(source, target) {
|
|
55
55
|
/*
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
console.dir(source);
|
|
57
|
+
console.dir(target);
|
|
58
58
|
*/
|
|
59
59
|
if (target instanceof basic_1.TableType) {
|
|
60
60
|
if (target.isWithHeader()) {
|
|
@@ -103,7 +103,8 @@ class TypeUtils {
|
|
|
103
103
|
}
|
|
104
104
|
return false;
|
|
105
105
|
}
|
|
106
|
-
else if (target instanceof basic_1.IntegerType
|
|
106
|
+
else if (target instanceof basic_1.IntegerType
|
|
107
|
+
|| target instanceof basic_1.StringType) {
|
|
107
108
|
if (source instanceof basic_1.DataReference
|
|
108
109
|
|| source instanceof basic_1.ObjectReferenceType
|
|
109
110
|
|| source instanceof basic_1.GenericObjectReferenceType
|
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.7",
|
|
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.14",
|
|
52
52
|
"chai": "^4.3.6",
|
|
53
53
|
"eslint": "^8.8.0",
|
|
54
54
|
"mocha": "^9.2.0",
|