@abaplint/core 2.113.86 → 2.113.87
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/communication.js +5 -3
- package/build/src/abap/2_statements/statements/delete_memory.js +1 -1
- package/build/src/abap/2_statements/statements/modify_internal.js +2 -2
- package/build/src/abap/2_statements/statements/parameter.js +1 -1
- package/build/src/abap/2_statements/statements/selectionscreen.js +1 -1
- package/build/src/abap/2_statements/statements/selectoption.js +1 -1
- package/build/src/abap/2_statements/statements/submit.js +1 -1
- package/build/src/abap/5_syntax/_type_utils.js +3 -0
- package/build/src/abap/5_syntax/expressions/source.js +3 -2
- package/build/src/registry.js +1 -1
- package/package.json +1 -1
|
@@ -7,10 +7,12 @@ const version_1 = require("../../../version");
|
|
|
7
7
|
class Communication {
|
|
8
8
|
getMatcher() {
|
|
9
9
|
const length = (0, combi_1.seq)("LENGTH", expressions_1.Target);
|
|
10
|
+
const returncode = (0, combi_1.seq)("RETURNCODE", expressions_1.Source);
|
|
11
|
+
const buffer = (0, combi_1.seq)("BUFFER", expressions_1.Target);
|
|
10
12
|
const init = (0, combi_1.seq)("INIT ID", expressions_1.Source, "DESTINATION", expressions_1.Target);
|
|
11
|
-
const allocate = (0, combi_1.seq)("ALLOCATE ID", expressions_1.Source);
|
|
12
|
-
const send = (0, combi_1.seq)("SEND ID", expressions_1.Source,
|
|
13
|
-
const deallocate = (0, combi_1.seq)("DEALLOCATE ID", expressions_1.Source);
|
|
13
|
+
const allocate = (0, combi_1.seq)("ALLOCATE ID", expressions_1.Source, (0, combi_1.opt)(returncode));
|
|
14
|
+
const send = (0, combi_1.seq)("SEND ID", expressions_1.Source, (0, combi_1.opt)((0, combi_1.per)(buffer, length)), (0, combi_1.opt)(returncode));
|
|
15
|
+
const deallocate = (0, combi_1.seq)("DEALLOCATE ID", expressions_1.Source, (0, combi_1.opt)(returncode));
|
|
14
16
|
const accept = (0, combi_1.seq)("ACCEPT ID", expressions_1.Source);
|
|
15
17
|
const receive = (0, combi_1.seq)("RECEIVE ID", expressions_1.Source, "BUFFER", expressions_1.Source, (0, combi_1.opt)(length), "DATAINFO", expressions_1.Target, "STATUSINFO", expressions_1.Target, "RECEIVED", expressions_1.Target);
|
|
16
18
|
const ret = (0, combi_1.seq)("COMMUNICATION", (0, combi_1.alt)(init, allocate, send, deallocate, receive, accept));
|
|
@@ -9,7 +9,7 @@ class DeleteMemory {
|
|
|
9
9
|
const memory = (0, combi_1.seq)("MEMORY ID", expressions_1.Source);
|
|
10
10
|
const id = (0, combi_1.seq)("ID", expressions_1.Source);
|
|
11
11
|
const client = (0, combi_1.seq)("CLIENT", expressions_1.Source);
|
|
12
|
-
const shared = (0, combi_1.seq)("SHARED", (0, combi_1.altPrio)("MEMORY", "BUFFER"), expressions_1.Field, "(",
|
|
12
|
+
const shared = (0, combi_1.seq)("SHARED", (0, combi_1.altPrio)("MEMORY", "BUFFER"), expressions_1.Field, "(", (0, combi_1.regex)(/^\w+$/), ")", (0, combi_1.optPrio)(client), id);
|
|
13
13
|
const ret = (0, combi_1.seq)("DELETE FROM", (0, combi_1.alt)(memory, shared));
|
|
14
14
|
return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
|
|
15
15
|
}
|
|
@@ -13,9 +13,9 @@ class ModifyInternal {
|
|
|
13
13
|
const using = (0, combi_1.seq)("USING KEY", expressions_1.SimpleName);
|
|
14
14
|
const additions = (0, combi_1.per)(where, assigning, using);
|
|
15
15
|
const target = (0, combi_1.alt)(expressions_1.Target, expressions_1.Dynamic);
|
|
16
|
-
const options = (0, combi_1.alt)((0, combi_1.per)(index, transporting), (0, combi_1.seq)(from, (0, combi_1.opt)((0, combi_1.per)(index, transporting))), (0, combi_1.seq)((0, combi_1.per)(index, transporting), from, (0, combi_1.opt)((0, combi_1.per)(index, transporting))));
|
|
16
|
+
const options = (0, combi_1.alt)((0, combi_1.per)(index, transporting), (0, combi_1.seq)(from, (0, combi_1.opt)((0, combi_1.per)(index, transporting, using))), (0, combi_1.seq)((0, combi_1.per)(index, transporting), from, (0, combi_1.opt)((0, combi_1.per)(index, transporting))));
|
|
17
17
|
const long = (0, combi_1.seq)("MODIFY", (0, combi_1.opt)("TABLE"), target, (0, combi_1.opt)(options), (0, combi_1.opt)(additions));
|
|
18
|
-
const simple = (0, combi_1.seq)("MODIFY TABLE", target,
|
|
18
|
+
const simple = (0, combi_1.seq)("MODIFY TABLE", target, (0, combi_1.per)(from, using));
|
|
19
19
|
return (0, combi_1.alt)(long, simple);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -12,7 +12,7 @@ class Parameter {
|
|
|
12
12
|
const type = (0, combi_1.seq)((0, combi_1.altPrio)("TYPE", "LIKE"), (0, combi_1.altPrio)(expressions_1.TypeName, expressions_1.Dynamic));
|
|
13
13
|
const memory = (0, combi_1.seq)("MEMORY ID", expressions_1.SimpleSource1);
|
|
14
14
|
const listbox = (0, combi_1.str)("AS LISTBOX");
|
|
15
|
-
const cmd = (0, combi_1.seq)("USER-COMMAND", (0, combi_1.regex)(
|
|
15
|
+
const cmd = (0, combi_1.seq)("USER-COMMAND", (0, combi_1.regex)(/^[\w\?\/]+$/));
|
|
16
16
|
const modif = (0, combi_1.seq)("MODIF ID", expressions_1.Modif);
|
|
17
17
|
const visible = (0, combi_1.seq)("VISIBLE LENGTH", expressions_1.Constant);
|
|
18
18
|
const length = (0, combi_1.seq)("LENGTH", expressions_1.Constant);
|
|
@@ -41,7 +41,7 @@ class SelectionScreen {
|
|
|
41
41
|
const exclude = (0, combi_1.seq)("EXCLUDE", (0, combi_1.alt)("IDS", "PARAMETERS"), (0, combi_1.regex)(/^\w+$/));
|
|
42
42
|
const beginVersion = (0, combi_1.seq)("BEGIN OF VERSION", (0, combi_1.regex)(/^\w+$/), expressions_1.TextElement);
|
|
43
43
|
const endVersion = (0, combi_1.seq)("END OF VERSION", (0, combi_1.regex)(/^\w+$/));
|
|
44
|
-
const ret = (0, combi_1.seq)("SELECTION-SCREEN", (0, combi_1.altPrio)(comment, func, skip, pos, incl, iso, push, tab, uline, beginBlock, tabbed, endBlock, beginLine, endLine, param, beginScreen, endScreen, exclude, beginVersion, endVersion));
|
|
44
|
+
const ret = (0, combi_1.seq)("SELECTION-SCREEN", (0, combi_1.altPrio)(comment, func, skip, pos, incl, iso, push, tab, uline, beginBlock, tabbed, endBlock, beginLine, endLine, param, beginScreen, endScreen, exclude, beginVersion, endVersion, def));
|
|
45
45
|
return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -12,7 +12,7 @@ class SelectOption {
|
|
|
12
12
|
const option = (0, combi_1.seq)("OPTION", (0, combi_1.alt)("CP", expressions_1.Field));
|
|
13
13
|
const sign = (0, combi_1.seq)("SIGN", expressions_1.Field);
|
|
14
14
|
const memory = (0, combi_1.seq)("MEMORY ID", expressions_1.SimpleSource1);
|
|
15
|
-
const match = (0, combi_1.seq)("MATCHCODE OBJECT", expressions_1.
|
|
15
|
+
const match = (0, combi_1.seq)("MATCHCODE OBJECT", expressions_1.SimpleFieldChain);
|
|
16
16
|
const modif = (0, combi_1.seq)("MODIF ID", expressions_1.Modif);
|
|
17
17
|
const visible = (0, combi_1.seq)("VISIBLE LENGTH", expressions_1.Source);
|
|
18
18
|
const options = (0, combi_1.per)(def, option, sign, memory, match, visible, modif, "NO DATABASE SELECTION", "LOWER CASE", "NO-EXTENSION", "NO INTERVALS", "NO-DISPLAY", "OBLIGATORY");
|
|
@@ -7,7 +7,7 @@ const version_1 = require("../../../version");
|
|
|
7
7
|
class Submit {
|
|
8
8
|
getMatcher() {
|
|
9
9
|
const sign = (0, combi_1.seq)("SIGN", expressions_1.Source);
|
|
10
|
-
const eq = (0, combi_1.alt)("=", "EQ", "IN", "NE", "CP", "GE", "LE", "INCL");
|
|
10
|
+
const eq = (0, combi_1.alt)("=", "EQ", "IN", "NE", "CP", "GE", "LE", "INCL", "GT", "LT");
|
|
11
11
|
const compare = (0, combi_1.seq)(eq, expressions_1.Source);
|
|
12
12
|
const between = (0, combi_1.seq)("BETWEEN", expressions_1.Source, "AND", expressions_1.Source);
|
|
13
13
|
const selectionTable = (0, combi_1.seq)("WITH SELECTION-TABLE", expressions_1.Source);
|
|
@@ -126,9 +126,10 @@ class Source {
|
|
|
126
126
|
if (foundType === undefined && s) {
|
|
127
127
|
return new basic_1.DataReference(s);
|
|
128
128
|
}
|
|
129
|
-
else {
|
|
130
|
-
return foundType;
|
|
129
|
+
else if (foundType) {
|
|
130
|
+
return new basic_1.DataReference(foundType);
|
|
131
131
|
}
|
|
132
|
+
return undefined;
|
|
132
133
|
}
|
|
133
134
|
case "FILTER":
|
|
134
135
|
{
|
package/build/src/registry.js
CHANGED