@abaplint/core 2.113.135 → 2.113.136
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.
|
@@ -203,6 +203,13 @@ class TypeUtils {
|
|
|
203
203
|
}
|
|
204
204
|
return ret;
|
|
205
205
|
}
|
|
206
|
+
isConvable(source, target) {
|
|
207
|
+
if (source instanceof basic_1.TableType && target instanceof basic_1.TableType) {
|
|
208
|
+
// table key conversion, eg DEFAULT to EMPTY
|
|
209
|
+
return this.isAssignable(source.getRowType(), target.getRowType());
|
|
210
|
+
}
|
|
211
|
+
return this.isAssignable(source, target);
|
|
212
|
+
}
|
|
206
213
|
isCastable(_source, _target) {
|
|
207
214
|
// todo
|
|
208
215
|
return true;
|
|
@@ -111,7 +111,7 @@ class Source {
|
|
|
111
111
|
{
|
|
112
112
|
const foundType = this.determineType(node, input, targetType);
|
|
113
113
|
const bodyType = conv_body_1.ConvBody.runSyntax(node.findDirectExpression(Expressions.ConvBody), input);
|
|
114
|
-
if (new _type_utils_1.TypeUtils(input.scope).
|
|
114
|
+
if (new _type_utils_1.TypeUtils(input.scope).isConvable(foundType, bodyType) === false) {
|
|
115
115
|
const message = `CONV: Types not compatible, ${foundType === null || foundType === void 0 ? void 0 : foundType.constructor.name}, ${bodyType === null || bodyType === void 0 ? void 0 : bodyType.constructor.name}`;
|
|
116
116
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
117
117
|
return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
|
package/build/src/registry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.136",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"@microsoft/api-extractor": "^7.52.8",
|
|
54
54
|
"@types/chai": "^4.3.20",
|
|
55
55
|
"@types/mocha": "^10.0.10",
|
|
56
|
-
"@types/node": "^24.0.
|
|
56
|
+
"@types/node": "^24.0.10",
|
|
57
57
|
"chai": "^4.5.0",
|
|
58
|
-
"eslint": "^9.30.
|
|
58
|
+
"eslint": "^9.30.1",
|
|
59
59
|
"mocha": "^11.7.1",
|
|
60
60
|
"c8": "^10.1.3",
|
|
61
61
|
"source-map-support": "^0.5.21",
|