@abaplint/core 2.113.208 → 2.113.210
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/src/abap/2_statements/statements/modify_entities.js +4 -2
- package/build/src/abap/2_statements/statements/read_entities.js +3 -1
- package/build/src/abap/5_syntax/basic_types.js +3 -1
- package/build/src/cds/expressions/cds_prefixed_name.js +2 -1
- package/build/src/registry.js +1 -1
- package/package.json +1 -1
|
@@ -22,8 +22,10 @@ class ModifyEntities {
|
|
|
22
22
|
const reported = (0, combi_1.seq)("REPORTED", expressions_1.Target);
|
|
23
23
|
const end = (0, combi_1.optPrio)((0, combi_1.per)(failed, result, mapped, reported));
|
|
24
24
|
const entities = (0, combi_1.seq)((0, combi_1.optPrio)("AUGMENTING"), "ENTITIES OF", expressions_1.NamespaceSimpleName, (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.plusPrio)((0, combi_1.seq)("ENTITY", expressions_1.NamespaceSimpleName, (0, combi_1.plus)(operation))));
|
|
25
|
-
const create2 = (0, combi_1.seq)("CREATE", fieldsWith, "CREATE BY", expressions_1.AssociationName, fieldsWith);
|
|
26
|
-
const
|
|
25
|
+
const create2 = (0, combi_1.seq)("CREATE", fieldsWith, (0, combi_1.opt)((0, combi_1.seq)("CREATE BY", expressions_1.AssociationName, fieldsWith)));
|
|
26
|
+
const create3 = (0, combi_1.seq)("CREATE BY", expressions_1.AssociationName, fieldsWith);
|
|
27
|
+
const create4 = (0, combi_1.seq)("CREATE FROM", expressions_1.Source, (0, combi_1.plus)((0, combi_1.seq)("CREATE BY", expressions_1.AssociationName, "FROM", expressions_1.Source)));
|
|
28
|
+
const entity = (0, combi_1.seq)("ENTITY", (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.alt)(expressions_1.NamespaceSimpleName, expressions_1.EntityAssociation), (0, combi_1.alt)(execute, create, updateFields, deleteFrom, updateFrom, create2, create3, create4));
|
|
27
29
|
return (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("MODIFY", (0, combi_1.alt)(entities, entity), end));
|
|
28
30
|
}
|
|
29
31
|
}
|
|
@@ -15,8 +15,10 @@ class ReadEntities {
|
|
|
15
15
|
const reported = (0, combi_1.seq)("REPORTED", expressions_1.Target);
|
|
16
16
|
const entity = (0, combi_1.seq)("ENTITY", expressions_1.NamespaceSimpleName, (0, combi_1.opt)((0, combi_1.seq)("BY", expressions_1.AssociationName)), (0, combi_1.alt)(fields, from, all), (0, combi_1.optPrio)(result));
|
|
17
17
|
const s = (0, combi_1.seq)("ENTITIES OF", expressions_1.NamespaceSimpleName, (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.plus)(entity), (0, combi_1.optPrio)((0, combi_1.seq)("LINK", expressions_1.Target)), (0, combi_1.optPrio)((0, combi_1.per)(failed, reported)));
|
|
18
|
+
const byall = (0, combi_1.seq)("BY", expressions_1.AssociationName, all);
|
|
18
19
|
const by = (0, combi_1.seq)("BY", expressions_1.AssociationName, fields);
|
|
19
|
-
const
|
|
20
|
+
const sub = (0, combi_1.seq)((0, combi_1.alt)(all, fields, from, by, byall), result);
|
|
21
|
+
const single = (0, combi_1.seq)("ENTITY", (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.alt)(expressions_1.NamespaceSimpleName, expressions_1.EntityAssociation), (0, combi_1.plus)(sub), (0, combi_1.optPrio)(failed), (0, combi_1.optPrio)(reported));
|
|
20
22
|
return (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("READ", (0, combi_1.alt)(s, single)));
|
|
21
23
|
}
|
|
22
24
|
}
|
|
@@ -280,7 +280,7 @@ class BasicTypes {
|
|
|
280
280
|
}
|
|
281
281
|
parseTable(node, name) {
|
|
282
282
|
var _a, _b, _c, _d;
|
|
283
|
-
const typename = node.findFirstExpression(Expressions.TypeName);
|
|
283
|
+
const typename = node.findFirstExpression(Expressions.TypeName) || node.findFirstExpression(Expressions.EntityAssociation);
|
|
284
284
|
const text = (_a = node.findFirstExpression(Expressions.TypeTable)) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase();
|
|
285
285
|
if (text === undefined) {
|
|
286
286
|
return undefined;
|
|
@@ -416,6 +416,8 @@ class BasicTypes {
|
|
|
416
416
|
return new Types.TableType(structure, options);
|
|
417
417
|
}
|
|
418
418
|
else if (typename && (text.startsWith("TYPE TABLE FOR CREATE ")
|
|
419
|
+
|| text.startsWith("TYPE TABLE FOR READ ")
|
|
420
|
+
|| text.startsWith("TYPE TABLE FOR DELETE ")
|
|
419
421
|
|| text.startsWith("TYPE TABLE FOR UPDATE "))) {
|
|
420
422
|
const name = typename.concatTokens();
|
|
421
423
|
const type = (_d = this.input.scope.getDDIC().lookupDDLS(name)) === null || _d === void 0 ? void 0 : _d.type;
|
|
@@ -4,9 +4,10 @@ exports.CDSPrefixedName = void 0;
|
|
|
4
4
|
const combi_1 = require("../../abap/2_statements/combi");
|
|
5
5
|
const cds_name_1 = require("./cds_name");
|
|
6
6
|
const cds_parameters_1 = require("./cds_parameters");
|
|
7
|
+
const cds_parameters_select_1 = require("./cds_parameters_select");
|
|
7
8
|
class CDSPrefixedName extends combi_1.Expression {
|
|
8
9
|
getRunnable() {
|
|
9
|
-
return (0, combi_1.seq)(cds_name_1.CDSName, (0, combi_1.opt)(cds_parameters_1.CDSParameters), (0, combi_1.star)((0, combi_1.seq)(".", cds_name_1.CDSName, (0, combi_1.opt)(cds_parameters_1.CDSParameters))));
|
|
10
|
+
return (0, combi_1.seq)(cds_name_1.CDSName, (0, combi_1.opt)((0, combi_1.alt)(cds_parameters_1.CDSParameters, cds_parameters_select_1.CDSParametersSelect)), (0, combi_1.star)((0, combi_1.seq)(".", cds_name_1.CDSName, (0, combi_1.opt)(cds_parameters_1.CDSParameters))));
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
exports.CDSPrefixedName = CDSPrefixedName;
|
package/build/src/registry.js
CHANGED