@abaplint/core 2.105.14 → 2.105.15
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.
|
@@ -259,7 +259,7 @@ class TypeUtils {
|
|
|
259
259
|
else if (target instanceof basic_1.XStringType) {
|
|
260
260
|
return false;
|
|
261
261
|
}
|
|
262
|
-
else if (target instanceof basic_1.IntegerType) {
|
|
262
|
+
else if (target instanceof basic_1.IntegerType || target instanceof basic_1.Integer8Type) {
|
|
263
263
|
if (((_e = source.getAbstractTypeData()) === null || _e === void 0 ? void 0 : _e.derivedFromConstant) === true) {
|
|
264
264
|
return true;
|
|
265
265
|
}
|
package/build/src/registry.js
CHANGED
|
@@ -72,7 +72,7 @@ class UncaughtException extends _abap_rule_1.ABAPRule {
|
|
|
72
72
|
return this.issues;
|
|
73
73
|
}
|
|
74
74
|
traverse(n, file) {
|
|
75
|
-
var _a, _b, _c, _d;
|
|
75
|
+
var _a, _b, _c, _d, _e, _f;
|
|
76
76
|
const get = n.get();
|
|
77
77
|
if (get instanceof Structures.ClassDefinition
|
|
78
78
|
|| get instanceof Structures.Interface) {
|
|
@@ -124,6 +124,10 @@ class UncaughtException extends _abap_rule_1.ABAPRule {
|
|
|
124
124
|
if (concat.startsWith("RAISE EXCEPTION TYPE ")) {
|
|
125
125
|
name = (_d = n.findFirstExpression(Expressions.ClassName)) === null || _d === void 0 ? void 0 : _d.getFirstToken().getStr().toUpperCase();
|
|
126
126
|
}
|
|
127
|
+
else if (concat.startsWith("RAISE EXCEPTION NEW ")) {
|
|
128
|
+
name = (_f = (_e = n.findFirstExpression(Expressions.NewObject)) === null || _e === void 0 ? void 0 : _e.findFirstExpression(Expressions.TypeNameOrInfer)) === null || _f === void 0 ? void 0 : _f.getFirstToken().getStr().toUpperCase();
|
|
129
|
+
// todo: else its a normal Source, infer the type from it
|
|
130
|
+
}
|
|
127
131
|
this.check(name, n, file);
|
|
128
132
|
}
|
|
129
133
|
else if (get instanceof Statements.Perform) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.105.
|
|
3
|
+
"version": "2.105.15",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@microsoft/api-extractor": "^7.39.4",
|
|
54
54
|
"@types/chai": "^4.3.11",
|
|
55
55
|
"@types/mocha": "^10.0.6",
|
|
56
|
-
"@types/node": "^20.11.
|
|
56
|
+
"@types/node": "^20.11.10",
|
|
57
57
|
"chai": "^4.4.1",
|
|
58
58
|
"eslint": "^8.56.0",
|
|
59
59
|
"mocha": "^10.2.0",
|