@abaplint/core 2.118.2 → 2.118.4
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 +9 -0
- package/build/src/abap/2_statements/statements/method_def.js +1 -1
- package/build/src/abap/2_statements/statements/type_enum.js +1 -1
- package/build/src/abap/2_statements/statements/type_enum_begin.js +1 -1
- package/build/src/abap/2_statements/statements/type_enum_end.js +1 -1
- package/build/src/abap/5_syntax/_type_utils.js +3 -1
- package/build/src/abap/types/basic/index.js +1 -0
- package/build/src/registry.js +1 -1
- package/package.json +1 -1
package/build/abaplint.d.ts
CHANGED
|
@@ -491,6 +491,7 @@ declare namespace BasicTypes {
|
|
|
491
491
|
DecFloatType,
|
|
492
492
|
DecFloat16Type,
|
|
493
493
|
DecFloat34Type,
|
|
494
|
+
EnumType,
|
|
494
495
|
FloatType,
|
|
495
496
|
FloatingPointType,
|
|
496
497
|
GenericObjectReferenceType,
|
|
@@ -2264,6 +2265,14 @@ declare class EntityType extends AbstractObject {
|
|
|
2264
2265
|
getDescription(): string | undefined;
|
|
2265
2266
|
}
|
|
2266
2267
|
|
|
2268
|
+
declare class EnumType extends AbstractType {
|
|
2269
|
+
toText(): string;
|
|
2270
|
+
isGeneric(): boolean;
|
|
2271
|
+
toABAP(): string;
|
|
2272
|
+
containsVoid(): boolean;
|
|
2273
|
+
toCDS(): string;
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2267
2276
|
declare class EventBinding extends AbstractObject {
|
|
2268
2277
|
getType(): string;
|
|
2269
2278
|
getAllowedNaming(): {
|
|
@@ -6,7 +6,7 @@ const combi_1 = require("../combi");
|
|
|
6
6
|
const expressions_1 = require("../expressions");
|
|
7
7
|
class MethodDef {
|
|
8
8
|
getMatcher() {
|
|
9
|
-
const def = (0, combi_1.ver)(version_1.Version.v740sp08, (0, combi_1.seq)("DEFAULT", (0, combi_1.altPrio)("FAIL", "IGNORE")));
|
|
9
|
+
const def = (0, combi_1.ver)(version_1.Version.v740sp08, (0, combi_1.seq)("DEFAULT", (0, combi_1.altPrio)("FAIL", "IGNORE")), version_1.Version.OpenABAP);
|
|
10
10
|
const parameters = (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("FINAL", def, expressions_1.Abstract)), (0, combi_1.optPrio)(expressions_1.MethodDefImporting), (0, combi_1.optPrio)(expressions_1.MethodDefExporting), (0, combi_1.optPrio)(expressions_1.MethodDefChanging), (0, combi_1.optPrio)(expressions_1.MethodDefReturning), (0, combi_1.optPrio)((0, combi_1.altPrio)(expressions_1.MethodDefRaising, expressions_1.MethodDefExceptions)));
|
|
11
11
|
const testing = (0, combi_1.seq)((0, combi_1.optPrio)(expressions_1.Abstract), "FOR TESTING", (0, combi_1.optPrio)((0, combi_1.altPrio)(expressions_1.MethodDefRaising, expressions_1.MethodDefExceptions)));
|
|
12
12
|
const result = (0, combi_1.seq)("RESULT", expressions_1.MethodParamName);
|
|
@@ -7,7 +7,7 @@ const version_1 = require("../../../version");
|
|
|
7
7
|
class TypeEnum {
|
|
8
8
|
getMatcher() {
|
|
9
9
|
// it is also possible to define without Value, this is covered by normal type
|
|
10
|
-
const ret = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("TYPES", expressions_1.NamespaceSimpleName, expressions_1.Value));
|
|
10
|
+
const ret = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("TYPES", expressions_1.NamespaceSimpleName, expressions_1.Value), version_1.Version.OpenABAP);
|
|
11
11
|
return ret;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -9,7 +9,7 @@ class TypeEnumBegin {
|
|
|
9
9
|
const structure = (0, combi_1.seq)("STRUCTURE", expressions_1.NamespaceSimpleName);
|
|
10
10
|
const base = (0, combi_1.seq)("BASE TYPE", expressions_1.NamespaceSimpleName);
|
|
11
11
|
const em = (0, combi_1.seq)("ENUM", expressions_1.NamespaceSimpleName, (0, combi_1.opt)(structure), (0, combi_1.opt)(base));
|
|
12
|
-
const ret = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("TYPES", "BEGIN OF", em));
|
|
12
|
+
const ret = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("TYPES", "BEGIN OF", em), version_1.Version.OpenABAP);
|
|
13
13
|
return ret;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -7,7 +7,7 @@ const version_1 = require("../../../version");
|
|
|
7
7
|
class TypeEnumEnd {
|
|
8
8
|
getMatcher() {
|
|
9
9
|
const structure = (0, combi_1.seq)("STRUCTURE", expressions_1.NamespaceSimpleName);
|
|
10
|
-
const ret = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("TYPES", "END OF", "ENUM", expressions_1.NamespaceSimpleName, (0, combi_1.opt)(structure)));
|
|
10
|
+
const ret = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("TYPES", "END OF", "ENUM", expressions_1.NamespaceSimpleName, (0, combi_1.opt)(structure)), version_1.Version.OpenABAP);
|
|
11
11
|
return ret;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TypeUtils = void 0;
|
|
4
4
|
const types_1 = require("../types");
|
|
5
5
|
const basic_1 = require("../types/basic");
|
|
6
|
+
const enum_type_1 = require("../types/basic/enum_type");
|
|
6
7
|
const cgeneric_type_1 = require("../types/basic/cgeneric_type");
|
|
7
8
|
const Expressions = require("../2_statements/expressions");
|
|
8
9
|
// todo: refactor to static? for performance
|
|
@@ -79,7 +80,8 @@ class TypeUtils {
|
|
|
79
80
|
|| type instanceof basic_1.DataType
|
|
80
81
|
|| type instanceof basic_1.CLikeType
|
|
81
82
|
|| type instanceof basic_1.PackedType
|
|
82
|
-
|| type instanceof basic_1.TimeType
|
|
83
|
+
|| type instanceof basic_1.TimeType
|
|
84
|
+
|| type instanceof enum_type_1.EnumType) {
|
|
83
85
|
return true;
|
|
84
86
|
}
|
|
85
87
|
return false;
|
|
@@ -25,6 +25,7 @@ __exportStar(require("./date_type"), exports);
|
|
|
25
25
|
__exportStar(require("./decfloat_type"), exports);
|
|
26
26
|
__exportStar(require("./decfloat16_type"), exports);
|
|
27
27
|
__exportStar(require("./decfloat34_type"), exports);
|
|
28
|
+
__exportStar(require("./enum_type"), exports);
|
|
28
29
|
__exportStar(require("./float_type"), exports);
|
|
29
30
|
__exportStar(require("./floating_point_type"), exports);
|
|
30
31
|
__exportStar(require("./generic_object_reference_type"), exports);
|
package/build/src/registry.js
CHANGED