@abaplint/core 2.95.34 → 2.95.35
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.
|
@@ -10,13 +10,14 @@ class TypeTable extends combi_1.Expression {
|
|
|
10
10
|
getRunnable() {
|
|
11
11
|
const header = "WITH HEADER LINE";
|
|
12
12
|
const initial = (0, combi_1.seq)("INITIAL SIZE", _1.Constant);
|
|
13
|
-
const
|
|
13
|
+
const generic = (0, combi_1.seq)((0, combi_1.opt)((0, combi_1.alt)("STANDARD", "HASHED", "INDEX", "SORTED", "ANY")), "TABLE");
|
|
14
|
+
const normal1 = (0, combi_1.seq)((0, combi_1.opt)((0, combi_1.alt)("STANDARD", "HASHED", "INDEX", "SORTED", "ANY")), "TABLE OF", (0, combi_1.opt)("REF TO"), (0, combi_1.opt)(_1.TypeName));
|
|
14
15
|
const likeType = (0, combi_1.seq)((0, combi_1.opt)((0, combi_1.alt)("STANDARD", "HASHED", "INDEX", "SORTED", "ANY")), "TABLE OF", (0, combi_1.optPrio)("REF TO"), (0, combi_1.opt)(field_chain_1.FieldChain), (0, combi_1.opt)((0, combi_1.per)(header, initial, (0, combi_1.plusPrio)(type_table_key_1.TypeTableKey))));
|
|
15
16
|
const rangeType = (0, combi_1.seq)("RANGE OF", _1.TypeName, (0, combi_1.opt)(header), (0, combi_1.opt)(initial));
|
|
16
17
|
const rangeLike = (0, combi_1.seq)("RANGE OF", _1.SimpleFieldChain, (0, combi_1.opt)(header), (0, combi_1.opt)(initial));
|
|
17
18
|
// a maximum of 15 secondary table keys can be defined
|
|
18
19
|
// "WITH" is not allowed as a field name in keys
|
|
19
|
-
const typetable = (0, combi_1.seq)(normal1, (0, combi_1.alt)((0, combi_1.opt)((0, combi_1.per)(header, initial, (0, combi_1.plusPrio)(type_table_key_1.TypeTableKey))), (0, combi_1.seq)((0, combi_1.plus)(type_table_key_1.TypeTableKey), (0, combi_1.optPrio)(initial))));
|
|
20
|
+
const typetable = (0, combi_1.alt)(generic, (0, combi_1.seq)(normal1, (0, combi_1.alt)((0, combi_1.opt)((0, combi_1.per)(header, initial, (0, combi_1.plusPrio)(type_table_key_1.TypeTableKey))), (0, combi_1.seq)((0, combi_1.plus)(type_table_key_1.TypeTableKey), (0, combi_1.optPrio)(initial)))));
|
|
20
21
|
const occurs = (0, combi_1.seq)("OCCURS", _1.Integer);
|
|
21
22
|
const derived = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("TABLE FOR", (0, combi_1.altPrio)("ACTION IMPORT", "ACTION RESULT", "CREATE", "FAILED", "LOCK", "READ RESULT", "UPDATE"), _1.TypeName));
|
|
22
23
|
const oldType = (0, combi_1.seq)((0, combi_1.opt)("REF TO"), _1.TypeName, (0, combi_1.alt)((0, combi_1.seq)(occurs, (0, combi_1.opt)(header)), header));
|
|
@@ -691,6 +691,9 @@ class BasicTypes {
|
|
|
691
691
|
return new Types.UnknownType("Not a structured type");
|
|
692
692
|
}
|
|
693
693
|
foundType = foundType.getComponentByName(subs[0]);
|
|
694
|
+
if (foundType === undefined) {
|
|
695
|
+
return new Types.UnknownType(`Field "${subs[0]}" not found in structure`);
|
|
696
|
+
}
|
|
694
697
|
subs.shift();
|
|
695
698
|
}
|
|
696
699
|
return foundType;
|
package/build/src/registry.js
CHANGED