@abaplint/core 2.101.2 → 2.101.3
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.
|
@@ -116,7 +116,7 @@ class ABAPFileInformation {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
parseClasses(structure) {
|
|
119
|
-
var _a
|
|
119
|
+
var _a;
|
|
120
120
|
for (const found of structure.findAllStructures(Structures.ClassDefinition)) {
|
|
121
121
|
const className = found.findFirstStatement(Statements.ClassDefinition).findFirstExpression(Expressions.ClassName).getFirstToken();
|
|
122
122
|
const methods = this.parseMethodDefinition(found.findFirstStructure(Structures.PublicSection), visibility_1.Visibility.Public);
|
|
@@ -135,8 +135,26 @@ class ABAPFileInformation {
|
|
|
135
135
|
const containsGlobal = found.findFirstExpression(Expressions.ClassGlobal);
|
|
136
136
|
const cdef = found.findFirstStatement(Statements.ClassDefinition);
|
|
137
137
|
const concat = (cdef === null || cdef === void 0 ? void 0 : cdef.concatTokens().toUpperCase()) || "";
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
let riskLevel;
|
|
139
|
+
if (concat.includes("RISK LEVEL CRITICAL")) {
|
|
140
|
+
riskLevel = _abap_file_information_1.RiskLevel.critical;
|
|
141
|
+
}
|
|
142
|
+
else if (concat.includes("RISK LEVEL DANGEROUS")) {
|
|
143
|
+
riskLevel = _abap_file_information_1.RiskLevel.dangerous;
|
|
144
|
+
}
|
|
145
|
+
else if (concat.includes("RISK LEVEL HARMLESS")) {
|
|
146
|
+
riskLevel = _abap_file_information_1.RiskLevel.harmless;
|
|
147
|
+
}
|
|
148
|
+
let duration;
|
|
149
|
+
if (concat.includes("DURATION SHORT")) {
|
|
150
|
+
duration = _abap_file_information_1.Duration.short;
|
|
151
|
+
}
|
|
152
|
+
else if (concat.includes("DURATION LONG")) {
|
|
153
|
+
duration = _abap_file_information_1.Duration.long;
|
|
154
|
+
}
|
|
155
|
+
else if (concat.includes("DURATION MEDIUM")) {
|
|
156
|
+
duration = _abap_file_information_1.Duration.medium;
|
|
157
|
+
}
|
|
140
158
|
this.classes.push({
|
|
141
159
|
name: className.getStr(),
|
|
142
160
|
identifier: new _identifier_1.Identifier(className, this.filename),
|
package/build/src/registry.js
CHANGED