@abaplint/core 2.101.1 → 2.101.2
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.
package/build/abaplint.d.ts
CHANGED
|
@@ -1675,6 +1675,12 @@ declare interface DomainValue {
|
|
|
1675
1675
|
description: string;
|
|
1676
1676
|
}
|
|
1677
1677
|
|
|
1678
|
+
declare enum Duration {
|
|
1679
|
+
short = "SHORT",
|
|
1680
|
+
medium = "MEDIUM",
|
|
1681
|
+
long = "LONG"
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1678
1684
|
declare class Dynamic extends Expression {
|
|
1679
1685
|
getRunnable(): IStatementRunnable;
|
|
1680
1686
|
}
|
|
@@ -3154,6 +3160,8 @@ declare namespace Info {
|
|
|
3154
3160
|
InfoConstant,
|
|
3155
3161
|
InfoAlias,
|
|
3156
3162
|
InfoImplementing,
|
|
3163
|
+
Duration,
|
|
3164
|
+
RiskLevel,
|
|
3157
3165
|
InfoClassDefinition,
|
|
3158
3166
|
InfoClassImplementation,
|
|
3159
3167
|
InfoFormDefinition,
|
|
@@ -3183,6 +3191,8 @@ declare interface InfoClassDefinition extends InfoInterfaceDefinition {
|
|
|
3183
3191
|
isFinal: boolean;
|
|
3184
3192
|
interfaces: readonly InfoImplementing[];
|
|
3185
3193
|
isForTesting: boolean;
|
|
3194
|
+
duration: Duration | undefined;
|
|
3195
|
+
riskLevel: RiskLevel | undefined;
|
|
3186
3196
|
isSharedMemory: boolean;
|
|
3187
3197
|
}
|
|
3188
3198
|
|
|
@@ -4900,6 +4910,12 @@ declare class RFCService extends AbstractObject {
|
|
|
4900
4910
|
getDescription(): string | undefined;
|
|
4901
4911
|
}
|
|
4902
4912
|
|
|
4913
|
+
declare enum RiskLevel {
|
|
4914
|
+
harmless = "HARMLESS",
|
|
4915
|
+
critical = "CRITICAL",
|
|
4916
|
+
dangerous = "DANGEROUS"
|
|
4917
|
+
}
|
|
4918
|
+
|
|
4903
4919
|
declare class Rollback implements IStatement {
|
|
4904
4920
|
getMatcher(): IStatementRunnable;
|
|
4905
4921
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MethodParameterDirection = exports.AttributeLevel = void 0;
|
|
3
|
+
exports.RiskLevel = exports.Duration = exports.MethodParameterDirection = exports.AttributeLevel = void 0;
|
|
4
4
|
// Only helper functions to get data from single file, no type information
|
|
5
5
|
var AttributeLevel;
|
|
6
6
|
(function (AttributeLevel) {
|
|
@@ -15,4 +15,16 @@ var MethodParameterDirection;
|
|
|
15
15
|
MethodParameterDirection["Changing"] = "changing";
|
|
16
16
|
MethodParameterDirection["Returning"] = "returning";
|
|
17
17
|
})(MethodParameterDirection = exports.MethodParameterDirection || (exports.MethodParameterDirection = {}));
|
|
18
|
+
var Duration;
|
|
19
|
+
(function (Duration) {
|
|
20
|
+
Duration["short"] = "SHORT";
|
|
21
|
+
Duration["medium"] = "MEDIUM";
|
|
22
|
+
Duration["long"] = "LONG";
|
|
23
|
+
})(Duration = exports.Duration || (exports.Duration = {}));
|
|
24
|
+
var RiskLevel;
|
|
25
|
+
(function (RiskLevel) {
|
|
26
|
+
RiskLevel["harmless"] = "HARMLESS";
|
|
27
|
+
RiskLevel["critical"] = "CRITICAL";
|
|
28
|
+
RiskLevel["dangerous"] = "DANGEROUS";
|
|
29
|
+
})(RiskLevel = exports.RiskLevel || (exports.RiskLevel = {}));
|
|
18
30
|
//# sourceMappingURL=_abap_file_information.js.map
|
|
@@ -116,7 +116,7 @@ class ABAPFileInformation {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
parseClasses(structure) {
|
|
119
|
-
var _a;
|
|
119
|
+
var _a, _b, _c;
|
|
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,6 +135,8 @@ 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
|
+
const duration = (_b = cdef === null || cdef === void 0 ? void 0 : cdef.findExpressionAfterToken("DURATION")) === null || _b === void 0 ? void 0 : _b.concatTokens().toUpperCase();
|
|
139
|
+
const riskLevel = (_c = cdef === null || cdef === void 0 ? void 0 : cdef.findExpressionAfterToken("LEVEL")) === null || _c === void 0 ? void 0 : _c.concatTokens().toUpperCase();
|
|
138
140
|
this.classes.push({
|
|
139
141
|
name: className.getStr(),
|
|
140
142
|
identifier: new _identifier_1.Identifier(className, this.filename),
|
|
@@ -144,6 +146,8 @@ class ABAPFileInformation {
|
|
|
144
146
|
superClassName,
|
|
145
147
|
interfaces: this.getImplementing(found),
|
|
146
148
|
isForTesting: concat.includes(" FOR TESTING"),
|
|
149
|
+
duration,
|
|
150
|
+
riskLevel,
|
|
147
151
|
isAbstract: (cdef === null || cdef === void 0 ? void 0 : cdef.findDirectTokenByText("ABSTRACT")) !== undefined,
|
|
148
152
|
isSharedMemory: concat.includes(" SHARED MEMORY ENABLED"),
|
|
149
153
|
isFinal: found.findFirstExpression(Expressions.ClassFinal) !== undefined,
|
package/build/src/registry.js
CHANGED