All files / src/abap/2_statements/statements new_page.ts

100% Statements 57/57
100% Branches 1/1
100% Functions 1/1
100% Lines 57/57

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 571x 1x 1x 1x 1x 1x 1x 1x 1x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 1x 1x
import {IStatement} from "./_statement";
import {verNot, seq, alt, per, opt} from "../combi";
import {Source} from "../expressions";
import {Version} from "../../../version";
import {IStatementRunnable} from "../statement_runnable";
 
export class NewPage implements IStatement {
 
  public getMatcher(): IStatementRunnable {
    const line = seq("LINE-SIZE", Source);
    const print = seq("PRINT", alt("OFF", "ON"));
    const parameters = seq("PARAMETERS", Source);
    const destination = seq("DESTINATION", Source);
    const archive = seq("ARCHIVE PARAMETERS", Source);
    const lineCount = seq("LINE-COUNT", Source);
    const coverText = seq("COVER TEXT", Source);
    const coverPage = seq("SAP COVER PAGE", Source);
    const immediately = seq("IMMEDIATELY", Source);
    const copies = seq("COPIES", Source);
    const keep = seq("KEEP IN SPOOL", Source);
    const layout = seq("LAYOUT", Source);
    const listAuth = seq("LIST AUTHORITY", Source);
    const department = seq("DEPARTMENT", Source);
    const receiver = seq("RECEIVER", Source);
    const dataset = seq("LIST DATASET", Source);
    const name = seq("LIST NAME", Source);
    const newList = seq("NEW LIST IDENTIFICATION", Source);
 
    const ret = seq("NEW-PAGE",
                    opt(per(print,
                            alt("NO-TITLE", "WITH-TITLE"),
                            alt("NO-HEADING", "WITH-HEADING"),
                            "NO DIALOG",
                            "NO-TOPOFPAGE",
                            parameters,
                            listAuth,
                            immediately,
                            dataset,
                            coverPage,
                            newList,
                            keep,
                            department,
                            name,
                            layout,
                            destination,
                            receiver,
                            copies,
                            coverText,
                            archive,
                            "NEW-SECTION",
                            lineCount,
                            line)));
 
    return verNot(Version.Cloud, ret);
  }
 
}