@abaplint/core 2.93.69 → 2.93.71
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.
|
@@ -558,7 +558,7 @@ class BasicTypes {
|
|
|
558
558
|
const id = foo.getIdentifier();
|
|
559
559
|
const type = id instanceof types_1.ClassDefinition ? "CLAS" : "INTF";
|
|
560
560
|
this.scope.addReference(expr.getFirstToken(), id, _reference_1.ReferenceType.ObjectOrientedReference, this.filename, { ooType: type, ooName: id.getName() });
|
|
561
|
-
if (id instanceof types_1.ClassDefinition) {
|
|
561
|
+
if (id instanceof types_1.ClassDefinition || id instanceof types_1.InterfaceDefinition) {
|
|
562
562
|
const byName = new _object_oriented_1.ObjectOriented(this.scope).searchTypeName(id, typeName);
|
|
563
563
|
foundType = byName === null || byName === void 0 ? void 0 : byName.getType();
|
|
564
564
|
if (byName === undefined || foundType === undefined) {
|
|
@@ -567,6 +567,12 @@ class BasicTypes {
|
|
|
567
567
|
this.scope.addReference(expr.getTokens()[2], byName, _reference_1.ReferenceType.TypeReference, this.filename);
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
+
else if (foo === undefined) {
|
|
571
|
+
return new Types.UnknownType(className + " not found in scope");
|
|
572
|
+
}
|
|
573
|
+
else {
|
|
574
|
+
return new Types.UnknownType("Not a object reference, " + className);
|
|
575
|
+
}
|
|
570
576
|
}
|
|
571
577
|
else {
|
|
572
578
|
const found = this.scope.findType(subs[0]);
|
|
@@ -75,6 +75,11 @@ class FindGlobalDefinitions {
|
|
|
75
75
|
count = count + this.count(p.getType());
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
+
for (const e of def.getEvents() || []) {
|
|
79
|
+
for (const p of e.getParameters()) {
|
|
80
|
+
count = count + this.count(p.getType());
|
|
81
|
+
}
|
|
82
|
+
}
|
|
78
83
|
return count;
|
|
79
84
|
}
|
|
80
85
|
count(type) {
|
package/build/src/registry.js
CHANGED
|
@@ -105,7 +105,7 @@ DATA(sdf) = VALUE type(
|
|
|
105
105
|
for (const p of candidate.parameters) {
|
|
106
106
|
if (p.eq.getCol() !== expectedEqualsColumn) {
|
|
107
107
|
const message = "Align parameters to column " + expectedEqualsColumn;
|
|
108
|
-
return issue_1.Issue.atPosition(file, p.eq, message, this.getMetadata().key);
|
|
108
|
+
return issue_1.Issue.atPosition(file, p.eq, message, this.getMetadata().key, this.getConfig().severity);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
return undefined;
|