@abaplint/core 2.113.60 → 2.113.62
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 +5 -0
- package/build/src/abap/2_statements/expressions/select_loop.js +2 -1
- package/build/src/abap/2_statements/expressions/write_offset_length.js +1 -1
- package/build/src/abap/2_statements/statements/add.js +2 -1
- package/build/src/abap/2_statements/statements/at_pf.js +12 -0
- package/build/src/abap/2_statements/statements/describe.js +2 -1
- package/build/src/abap/2_statements/statements/export.js +1 -1
- package/build/src/abap/2_statements/statements/import.js +1 -1
- package/build/src/abap/2_statements/statements/index.js +1 -0
- package/build/src/abap/2_statements/statements/infotypes.js +4 -2
- package/build/src/abap/2_statements/statements/parameter.js +1 -1
- package/build/src/abap/2_statements/statements/program.js +1 -1
- package/build/src/abap/2_statements/statements/read_dataset.js +1 -1
- package/build/src/abap/2_statements/statements/selectionscreen.js +5 -2
- package/build/src/abap/2_statements/statements/write.js +2 -2
- package/build/src/abap/3_structures/structures/any.js +1 -1
- package/build/src/abap/3_structures/structures/case.js +2 -1
- package/build/src/abap/flow/selection_events.js +1 -0
- package/build/src/pretty_printer/indent.js +1 -0
- package/build/src/registry.js +1 -1
- package/package.json +1 -1
package/build/abaplint.d.ts
CHANGED
|
@@ -341,6 +341,10 @@ declare class AtLineSelection implements IStatement {
|
|
|
341
341
|
getMatcher(): IStatementRunnable;
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
+
declare class AtPF implements IStatement {
|
|
345
|
+
getMatcher(): IStatementRunnable;
|
|
346
|
+
}
|
|
347
|
+
|
|
344
348
|
declare class AtSelectionScreen implements IStatement {
|
|
345
349
|
getMatcher(): IStatementRunnable;
|
|
346
350
|
}
|
|
@@ -6347,6 +6351,7 @@ declare namespace Statements {
|
|
|
6347
6351
|
Import,
|
|
6348
6352
|
AtFirst_2 as AtFirst,
|
|
6349
6353
|
AtLast_2 as AtLast,
|
|
6354
|
+
AtPF,
|
|
6350
6355
|
At_2 as At,
|
|
6351
6356
|
Put,
|
|
6352
6357
|
EndAt,
|
|
@@ -22,7 +22,8 @@ class SelectLoop extends combi_1.Expression {
|
|
|
22
22
|
const into = (0, combi_1.altPrio)(sql_into_structure_1.SQLIntoStructure, _1.SQLIntoList);
|
|
23
23
|
const perm = (0, combi_1.per)(_1.SQLFrom, where, sql_up_to_1.SQLUpTo, sql_order_by_1.SQLOrderBy, sql_having_1.SQLHaving, _1.SQLClient, bypass, _1.SQLGroupBy, _1.SQLForAllEntries, (0, combi_1.alt)(tab, into, packTab));
|
|
24
24
|
const strict = (0, combi_1.seq)(_1.SQLFrom, (0, combi_1.ver)(version_1.Version.v750, sql_fields_loop_1.SQLFieldsLoop), (0, combi_1.optPrio)(_1.SQLForAllEntries), (0, combi_1.optPrio)((0, combi_1.seq)(where, (0, combi_1.optPrio)(sql_order_by_1.SQLOrderBy), into, (0, combi_1.optPrio)(sql_up_to_1.SQLUpTo))));
|
|
25
|
-
const
|
|
25
|
+
const aggr = (0, combi_1.seq)(_1.SQLAggregation, into, _1.SQLFrom, where, _1.SQLGroupBy);
|
|
26
|
+
const ret = (0, combi_1.seq)("SELECT", (0, combi_1.altPrio)((0, combi_1.seq)((0, combi_1.optPrio)("DISTINCT"), sql_field_list_loop_1.SQLFieldListLoop, perm), strict, aggr), (0, combi_1.optPrio)(sql_hints_1.SQLHints));
|
|
26
27
|
return ret;
|
|
27
28
|
}
|
|
28
29
|
}
|
|
@@ -8,7 +8,7 @@ class WriteOffsetLength extends combi_1.Expression {
|
|
|
8
8
|
getRunnable() {
|
|
9
9
|
const post = (0, combi_1.seq)((0, combi_1.alt)(simple_field_chain2_1.SimpleFieldChain2, (0, combi_1.regex)(/^[\d]+$/), (0, combi_1.regex)(/^\*$/)), (0, combi_1.alt)((0, combi_1.tok)(tokens_1.ParenRightW), (0, combi_1.tok)(tokens_1.ParenRight)));
|
|
10
10
|
const wlength = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeft), post);
|
|
11
|
-
const length = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeft), post);
|
|
11
|
+
const length = (0, combi_1.seq)((0, combi_1.alt)((0, combi_1.tok)(tokens_1.WParenLeft), (0, combi_1.tok)(tokens_1.ParenLeft)), post);
|
|
12
12
|
const complex = (0, combi_1.alt)(wlength, (0, combi_1.seq)((0, combi_1.alt)(simple_field_chain2_1.SimpleFieldChain2, (0, combi_1.regex)(/^\/?[\w\d]+$/), "/"), (0, combi_1.opt)(length)));
|
|
13
13
|
const at = (0, combi_1.seq)((0, combi_1.opt)("AT"), complex);
|
|
14
14
|
return at;
|
|
@@ -6,7 +6,8 @@ const expressions_1 = require("../expressions");
|
|
|
6
6
|
class Add {
|
|
7
7
|
getMatcher() {
|
|
8
8
|
const to = (0, combi_1.seq)("TO", expressions_1.Target);
|
|
9
|
-
const
|
|
9
|
+
const giving = (0, combi_1.seq)("GIVING", expressions_1.FieldSub);
|
|
10
|
+
const then = (0, combi_1.seq)("THEN", expressions_1.FieldSub, "UNTIL", expressions_1.FieldSub, (0, combi_1.alt)(giving, to));
|
|
10
11
|
const ret = (0, combi_1.seq)("ADD", expressions_1.Source, (0, combi_1.altPrio)(to, then));
|
|
11
12
|
return ret;
|
|
12
13
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AtPF = void 0;
|
|
4
|
+
const combi_1 = require("../combi");
|
|
5
|
+
const version_1 = require("../../../version");
|
|
6
|
+
class AtPF {
|
|
7
|
+
getMatcher() {
|
|
8
|
+
return (0, combi_1.verNot)(version_1.Version.Cloud, (0, combi_1.seq)("AT", (0, combi_1.regex)(/^PF\d\d?$/i)));
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.AtPF = AtPF;
|
|
12
|
+
//# sourceMappingURL=at_pf.js.map
|
|
@@ -20,8 +20,9 @@ class Describe {
|
|
|
20
20
|
const index = (0, combi_1.seq)("INDEX", expressions_1.Source);
|
|
21
21
|
const top = (0, combi_1.seq)("TOP-LINES", expressions_1.Target);
|
|
22
22
|
const lineSize = (0, combi_1.seq)("LINE-SIZE", expressions_1.Target);
|
|
23
|
+
const lineCount = (0, combi_1.seq)("LINE-COUNT", expressions_1.Target);
|
|
23
24
|
const first = (0, combi_1.seq)("FIRST-LINE", expressions_1.Target);
|
|
24
|
-
const list = (0, combi_1.seq)("LIST", (0, combi_1.per)(lines, pages, index, line, page, top, first, lineSize));
|
|
25
|
+
const list = (0, combi_1.seq)("LIST", (0, combi_1.per)(lines, pages, index, line, page, top, first, lineSize, lineCount));
|
|
25
26
|
const ret = (0, combi_1.seq)("DESCRIBE", (0, combi_1.altPrio)(table, field, distance, list));
|
|
26
27
|
return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
|
|
27
28
|
}
|
|
@@ -19,7 +19,7 @@ class Export {
|
|
|
19
19
|
const database = (0, combi_1.seq)("DATABASE", cluster, (0, combi_1.per)(from, client, id, using));
|
|
20
20
|
const target = (0, combi_1.alt)(buffer, memory, database, table, shared);
|
|
21
21
|
const left = (0, combi_1.alt)(expressions_1.FieldSub, expressions_1.FieldSymbol);
|
|
22
|
-
const source = (0, combi_1.alt)((0, combi_1.plus)((0, combi_1.altPrio)(expressions_1.ParameterS, (0, combi_1.seq)(left, from), left)), expressions_1.Dynamic);
|
|
22
|
+
const source = (0, combi_1.alt)((0, combi_1.plus)((0, combi_1.altPrio)(expressions_1.ParameterS, (0, combi_1.seq)(left, from), left)), expressions_1.Dynamic, expressions_1.Constant);
|
|
23
23
|
const compression = (0, combi_1.seq)("COMPRESSION", (0, combi_1.alt)("ON", "OFF"));
|
|
24
24
|
const hint = (0, combi_1.seq)("CODE PAGE HINT", expressions_1.Source);
|
|
25
25
|
return (0, combi_1.seq)("EXPORT", source, "TO", target, (0, combi_1.opt)(compression), (0, combi_1.opt)(hint));
|
|
@@ -12,7 +12,7 @@ class Import {
|
|
|
12
12
|
const using = (0, combi_1.seq)("USING", expressions_1.Source);
|
|
13
13
|
const cluster = (0, combi_1.seq)(expressions_1.NamespaceSimpleName, (0, combi_1.tok)(tokens_1.ParenLeft), (0, combi_1.regex)(/^[\w$%\^]{2}$/), (0, combi_1.tok)(tokens_1.ParenRightW));
|
|
14
14
|
const buffer = (0, combi_1.seq)("DATA BUFFER", expressions_1.Source);
|
|
15
|
-
const memory = (0, combi_1.seq)("MEMORY ID", expressions_1.Source);
|
|
15
|
+
const memory = (0, combi_1.seq)("MEMORY", (0, combi_1.opt)((0, combi_1.seq)("ID", expressions_1.Source)));
|
|
16
16
|
const table = (0, combi_1.seq)("INTERNAL TABLE", expressions_1.Source);
|
|
17
17
|
const shared = (0, combi_1.seq)((0, combi_1.alt)("SHARED MEMORY", "SHARED BUFFER"), cluster, (0, combi_1.per)(dto, client, id));
|
|
18
18
|
const database = (0, combi_1.seq)("DATABASE", cluster, (0, combi_1.per)(dto, client, id, using));
|
|
@@ -206,6 +206,7 @@ __exportStar(require("./export"), exports);
|
|
|
206
206
|
__exportStar(require("./import"), exports);
|
|
207
207
|
__exportStar(require("./at_first"), exports);
|
|
208
208
|
__exportStar(require("./at_last"), exports);
|
|
209
|
+
__exportStar(require("./at_pf"), exports);
|
|
209
210
|
__exportStar(require("./at"), exports);
|
|
210
211
|
__exportStar(require("./put"), exports);
|
|
211
212
|
__exportStar(require("./endat"), exports);
|
|
@@ -7,8 +7,10 @@ const version_1 = require("../../../version");
|
|
|
7
7
|
class Infotypes {
|
|
8
8
|
getMatcher() {
|
|
9
9
|
const occurs = (0, combi_1.seq)("OCCURS", expressions_1.Constant);
|
|
10
|
-
const name = (0, combi_1.seq)("NAME", expressions_1.
|
|
11
|
-
const
|
|
10
|
+
const name = (0, combi_1.seq)("NAME", expressions_1.FieldSub);
|
|
11
|
+
const mode = "MODE N";
|
|
12
|
+
const valid = (0, combi_1.seq)("VALID FROM", expressions_1.Source, "TO", expressions_1.Source);
|
|
13
|
+
const ret = (0, combi_1.seq)("INFOTYPES", (0, combi_1.regex)(/^\d\d\d\d$/), (0, combi_1.optPrio)(valid), (0, combi_1.optPrio)(name), (0, combi_1.optPrio)(occurs), (0, combi_1.optPrio)(mode));
|
|
12
14
|
return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -18,7 +18,7 @@ class Parameter {
|
|
|
18
18
|
const length = (0, combi_1.seq)("LENGTH", expressions_1.Constant);
|
|
19
19
|
const match = (0, combi_1.seq)("MATCHCODE OBJECT", expressions_1.Field);
|
|
20
20
|
const decimals = (0, combi_1.seq)("DECIMALS", expressions_1.Source);
|
|
21
|
-
const forTable = (0, combi_1.seq)("FOR TABLE", expressions_1.DatabaseTable);
|
|
21
|
+
const forTable = (0, combi_1.seq)("FOR TABLE", expressions_1.DatabaseTable, (0, combi_1.opt)("VALUE-REQUEST"));
|
|
22
22
|
const perm = (0, combi_1.per)(type, def, "OBLIGATORY", match, cmd, length, decimals, radio, memory, modif, listbox, visible, forTable, "VALUE CHECK", "NO-DISPLAY", "AS CHECKBOX", "LOWER CASE");
|
|
23
23
|
const ret = (0, combi_1.seq)(para, expressions_1.FieldSub, (0, combi_1.opt)(expressions_1.FieldLength), (0, combi_1.opt)(perm));
|
|
24
24
|
return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
|
|
@@ -9,7 +9,7 @@ class Program {
|
|
|
9
9
|
const message = (0, combi_1.seq)("MESSAGE-ID", expressions_1.MessageClass);
|
|
10
10
|
const size = (0, combi_1.seq)("LINE-SIZE", expressions_1.Source);
|
|
11
11
|
const heading = (0, combi_1.str)("NO STANDARD PAGE HEADING");
|
|
12
|
-
const line = (0, combi_1.seq)("LINE-COUNT", expressions_1.Source);
|
|
12
|
+
const line = (0, combi_1.seq)("LINE-COUNT", expressions_1.Source, (0, combi_1.opt)(expressions_1.FieldLength));
|
|
13
13
|
const options = (0, combi_1.per)(message, size, heading, line);
|
|
14
14
|
const ret = (0, combi_1.seq)("PROGRAM", (0, combi_1.opt)(expressions_1.ReportName), (0, combi_1.opt)(options));
|
|
15
15
|
return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
|
|
@@ -6,7 +6,7 @@ const expressions_1 = require("../expressions");
|
|
|
6
6
|
const version_1 = require("../../../version");
|
|
7
7
|
class ReadDataset {
|
|
8
8
|
getMatcher() {
|
|
9
|
-
const ret = (0, combi_1.seq)("READ DATASET", expressions_1.Source, "INTO", expressions_1.Target, (0, combi_1.opt)((0, combi_1.seq)("MAXIMUM LENGTH", expressions_1.Source)
|
|
9
|
+
const ret = (0, combi_1.seq)("READ DATASET", expressions_1.Source, "INTO", expressions_1.Target, (0, combi_1.opt)((0, combi_1.per)((0, combi_1.seq)("MAXIMUM LENGTH", expressions_1.Source), (0, combi_1.seq)("ACTUAL LENGTH", expressions_1.Target), (0, combi_1.seq)("LENGTH", expressions_1.Target))));
|
|
10
10
|
return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -35,10 +35,13 @@ class SelectionScreen {
|
|
|
35
35
|
const pos = (0, combi_1.seq)("POSITION", (0, combi_1.altPrio)(posIntegers, posSymbols), (0, combi_1.opt)((0, combi_1.seq)("FOR TABLE", expressions_1.Field)));
|
|
36
36
|
const incl = (0, combi_1.seq)("INCLUDE BLOCKS", expressions_1.BlockName);
|
|
37
37
|
const tabbed = (0, combi_1.seq)("BEGIN OF TABBED BLOCK", expressions_1.BlockName, "FOR", expressions_1.Integer, "LINES", (0, combi_1.optPrio)("NO INTERVALS"));
|
|
38
|
-
const uline = (0, combi_1.seq)("ULINE", (0, combi_1.opt)(position));
|
|
38
|
+
const uline = (0, combi_1.seq)("ULINE", (0, combi_1.opt)(position), (0, combi_1.opt)(modif));
|
|
39
39
|
const param = (0, combi_1.seq)("INCLUDE PARAMETERS", expressions_1.Field);
|
|
40
40
|
const iso = (0, combi_1.seq)("INCLUDE SELECT-OPTIONS", expressions_1.Field);
|
|
41
|
-
const
|
|
41
|
+
const exclude = (0, combi_1.seq)("EXCLUDE", (0, combi_1.alt)("IDS", "PARAMETERS"), (0, combi_1.regex)(/^\w+$/));
|
|
42
|
+
const beginVersion = (0, combi_1.seq)("BEGIN OF VERSION", (0, combi_1.regex)(/^\w+$/), expressions_1.TextElement);
|
|
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));
|
|
42
45
|
return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
|
|
43
46
|
}
|
|
44
47
|
}
|
|
@@ -11,8 +11,8 @@ class Write {
|
|
|
11
11
|
const dateFormat = (0, combi_1.altPrio)("DD/MM/YY", "MM/DD/YY", "DD/MM/YYYY", "MM/DD/YYYY", "DDMMYY", "MMDDYY", "YYMMDD");
|
|
12
12
|
const as = (0, combi_1.seq)("AS", (0, combi_1.altPrio)("LINE", "ICON", "CHECKBOX", "SYMBOL"));
|
|
13
13
|
const to = (0, combi_1.seq)("TO", expressions_1.Target);
|
|
14
|
-
const options = (0, combi_1.per)(mask, to, (0, combi_1.seq)("EXPONENT", expressions_1.Source), "NO-GROUPING", "NO-ZERO", "CENTERED", (0, combi_1.seq)("INPUT", (0, combi_1.opt)(onOff)), "NO-GAP", "LEFT-JUSTIFIED", as, (0, combi_1.seq)("FRAMES", onOff), (0, combi_1.seq)("HOTSPOT", (0, combi_1.opt)(onOff)), "RIGHT-JUSTIFIED", (0, combi_1.seq)("TIME ZONE", expressions_1.Source), (0, combi_1.seq)("UNDER", expressions_1.Source), (0, combi_1.seq)("STYLE", expressions_1.Source), (0, combi_1.seq)("ROUND", expressions_1.Source), (0, combi_1.seq)("QUICKINFO", expressions_1.Source), "ENVIRONMENT TIME FORMAT", dateFormat, (0, combi_1.seq)("UNIT", expressions_1.Source), (0, combi_1.seq)("INTENSIFIED", (0, combi_1.opt)(onOff)), (0, combi_1.seq)("INDEX", expressions_1.Source), (0, combi_1.seq)("DECIMALS", expressions_1.Source), (0, combi_1.seq)("INVERSE", (0, combi_1.opt)(onOff)), expressions_1.Color, (0, combi_1.seq)("CURRENCY", expressions_1.Source), "NO-SIGN");
|
|
15
|
-
const ret = (0, combi_1.seq)("WRITE", (0, combi_1.alt)("AT /", (0, combi_1.seq)((0, combi_1.opt)(expressions_1.WriteOffsetLength), (0, combi_1.
|
|
14
|
+
const options = (0, combi_1.per)(mask, to, (0, combi_1.seq)("EXPONENT", expressions_1.Source), "NO-GROUPING", "NO-ZERO", "CENTERED", (0, combi_1.seq)("INPUT", (0, combi_1.opt)(onOff)), "NO-GAP", "LEFT-JUSTIFIED", as, (0, combi_1.seq)("FRAMES", onOff), (0, combi_1.seq)("HOTSPOT", (0, combi_1.opt)(onOff)), "RIGHT-JUSTIFIED", (0, combi_1.seq)("TIME ZONE", expressions_1.Source), (0, combi_1.seq)("UNDER", expressions_1.Source), (0, combi_1.seq)("STYLE", expressions_1.Source), (0, combi_1.seq)("ROUND", expressions_1.Source), (0, combi_1.seq)("QUICKINFO", expressions_1.Source), "ENVIRONMENT TIME FORMAT", dateFormat, (0, combi_1.seq)("UNIT", expressions_1.Source), (0, combi_1.seq)("INTENSIFIED", (0, combi_1.opt)(onOff)), (0, combi_1.seq)("INDEX", expressions_1.Source), (0, combi_1.seq)("DECIMALS", expressions_1.Source), (0, combi_1.seq)("INVERSE", (0, combi_1.opt)(onOff)), expressions_1.Color, (0, combi_1.seq)("CURRENCY", expressions_1.Source), "RESET", "NO-SIGN");
|
|
15
|
+
const ret = (0, combi_1.seq)("WRITE", (0, combi_1.alt)("AT /", (0, combi_1.seq)((0, combi_1.opt)(expressions_1.WriteOffsetLength), (0, combi_1.alt)(expressions_1.Source, expressions_1.Dynamic, "/"), (0, combi_1.opt)(options))));
|
|
16
16
|
return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -6,7 +6,7 @@ const Structures = require(".");
|
|
|
6
6
|
const Statements = require("../../2_statements/statements");
|
|
7
7
|
class Any {
|
|
8
8
|
getMatcher() {
|
|
9
|
-
return (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sta)(Statements.ClassLocalFriends), (0, _combi_1.sta)(Statements.ClassDeferred), (0, _combi_1.sta)(Statements.Report), (0, _combi_1.sta)(Statements.Program), (0, _combi_1.sta)(Statements.Parameter), (0, _combi_1.sta)(Statements.CheckSelectOptions), (0, _combi_1.sta)(Statements.Get), (0, _combi_1.sta)(Statements.Initialization), (0, _combi_1.sta)(Statements.InterfaceDeferred), (0, _combi_1.sta)(Statements.SelectionScreen), (0, _combi_1.sta)(Statements.SelectOption), (0, _combi_1.sta)(Statements.AtSelectionScreen), (0, _combi_1.sta)(Statements.AtLineSelection), (0, _combi_1.sta)(Statements.AtUserCommand), (0, _combi_1.sta)(Statements.StartOfSelection), (0, _combi_1.sta)(Statements.EndOfSelection), (0, _combi_1.sta)(Statements.LoadOfProgram), (0, _combi_1.sta)(Statements.TopOfPage), (0, _combi_1.sta)(Statements.EndOfPage), (0, _combi_1.sta)(Statements.Controls), (0, _combi_1.sta)(Statements.TypePools), (0, _combi_1.sta)(Statements.TypePool), (0, _combi_1.sta)(Statements.FunctionPool), (0, _combi_1.sub)(Structures.Normal), (0, _combi_1.sub)(Structures.Form), (0, _combi_1.sub)(Structures.Module), (0, _combi_1.sub)(Structures.FunctionModule), (0, _combi_1.sub)(Structures.Interface), (0, _combi_1.sub)(Structures.ClassDefinition), (0, _combi_1.sub)(Structures.ClassImplementation)));
|
|
9
|
+
return (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sta)(Statements.ClassLocalFriends), (0, _combi_1.sta)(Statements.ClassDeferred), (0, _combi_1.sta)(Statements.Report), (0, _combi_1.sta)(Statements.Program), (0, _combi_1.sta)(Statements.Parameter), (0, _combi_1.sta)(Statements.CheckSelectOptions), (0, _combi_1.sta)(Statements.Get), (0, _combi_1.sta)(Statements.Initialization), (0, _combi_1.sta)(Statements.InterfaceDeferred), (0, _combi_1.sta)(Statements.SelectionScreen), (0, _combi_1.sta)(Statements.SelectOption), (0, _combi_1.sta)(Statements.AtSelectionScreen), (0, _combi_1.sta)(Statements.AtLineSelection), (0, _combi_1.sta)(Statements.AtPF), (0, _combi_1.sta)(Statements.AtUserCommand), (0, _combi_1.sta)(Statements.StartOfSelection), (0, _combi_1.sta)(Statements.EndOfSelection), (0, _combi_1.sta)(Statements.LoadOfProgram), (0, _combi_1.sta)(Statements.TopOfPage), (0, _combi_1.sta)(Statements.EndOfPage), (0, _combi_1.sta)(Statements.Controls), (0, _combi_1.sta)(Statements.TypePools), (0, _combi_1.sta)(Statements.TypePool), (0, _combi_1.sta)(Statements.FunctionPool), (0, _combi_1.sub)(Structures.Normal), (0, _combi_1.sub)(Structures.Form), (0, _combi_1.sub)(Structures.Module), (0, _combi_1.sub)(Structures.FunctionModule), (0, _combi_1.sub)(Structures.Interface), (0, _combi_1.sub)(Structures.ClassDefinition), (0, _combi_1.sub)(Structures.ClassImplementation)));
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
exports.Any = Any;
|
|
@@ -5,9 +5,10 @@ const Statements = require("../../2_statements/statements");
|
|
|
5
5
|
const _combi_1 = require("./_combi");
|
|
6
6
|
const when_1 = require("./when");
|
|
7
7
|
const _statement_1 = require("../../2_statements/statements/_statement");
|
|
8
|
+
const normal_1 = require("./normal");
|
|
8
9
|
class Case {
|
|
9
10
|
getMatcher() {
|
|
10
|
-
return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.Case), (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sub)(when_1.When), (0, _combi_1.sta)(_statement_1.MacroCall), (0, _combi_1.sta)(Statements.Include))), (0, _combi_1.sta)(Statements.EndCase));
|
|
11
|
+
return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.Case), (0, _combi_1.seq)((0, _combi_1.star)((0, _combi_1.sub)(normal_1.Normal)), (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sub)(when_1.When), (0, _combi_1.sta)(_statement_1.MacroCall), (0, _combi_1.sta)(Statements.Include)))), (0, _combi_1.sta)(Statements.EndCase));
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
exports.Case = Case;
|
|
@@ -72,6 +72,7 @@ class Indent {
|
|
|
72
72
|
else if (type instanceof Statements.StartOfSelection
|
|
73
73
|
|| type instanceof Statements.AtSelectionScreen
|
|
74
74
|
|| type instanceof Statements.AtLineSelection
|
|
75
|
+
|| type instanceof Statements.AtPF
|
|
75
76
|
|| type instanceof Statements.Initialization
|
|
76
77
|
|| type instanceof Statements.AtUserCommand
|
|
77
78
|
|| type instanceof Statements.TopOfPage
|
package/build/src/registry.js
CHANGED