@abaplint/core 2.102.10 → 2.102.12
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.
|
@@ -417,6 +417,7 @@ class TypeUtils {
|
|
|
417
417
|
return false;
|
|
418
418
|
}
|
|
419
419
|
else if (target instanceof basic_1.IntegerType
|
|
420
|
+
|| target instanceof basic_1.CharacterType
|
|
420
421
|
|| target instanceof basic_1.StringType) {
|
|
421
422
|
if (source instanceof basic_1.TableType && source.isWithHeader() === false) {
|
|
422
423
|
return false;
|
package/build/src/registry.js
CHANGED
|
@@ -2553,13 +2553,14 @@ ${indentation} output = ${uniqueName}.\n`;
|
|
|
2553
2553
|
}
|
|
2554
2554
|
}
|
|
2555
2555
|
}
|
|
2556
|
+
// todo, optimize, the findVariable() and findType() does a lot of redundant checks
|
|
2556
2557
|
existsRecursive(spag, name) {
|
|
2557
|
-
const existsDirect = spag.findVariable(name);
|
|
2558
|
+
const existsDirect = spag.findVariable(name) || spag.findType(name);
|
|
2558
2559
|
if (existsDirect) {
|
|
2559
2560
|
return true;
|
|
2560
2561
|
}
|
|
2561
2562
|
for (const child of spag.getChildren()) {
|
|
2562
|
-
if (child.findVariable(name) || this.existsRecursive(child, name)) {
|
|
2563
|
+
if (child.findVariable(name) || child.findType(name) || this.existsRecursive(child, name)) {
|
|
2563
2564
|
return true;
|
|
2564
2565
|
}
|
|
2565
2566
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.102.
|
|
3
|
+
"version": "2.102.12",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.1.6"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"fast-xml-parser": "^4.2.
|
|
66
|
+
"fast-xml-parser": "^4.2.7",
|
|
67
67
|
"json5": "^2.2.3",
|
|
68
68
|
"vscode-languageserver-types": "^3.17.3"
|
|
69
69
|
}
|