All files / src/abap/3_structures/structures section_section.ts

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

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 311x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x
import {IStructure} from "./_structure";
import * as Statements from "../../2_statements/statements";
import {star, alt, sta, sub} from "./_combi";
import {IStructureRunnable} from "./_structure_runnable";
import {Types} from "./types";
import {Constants} from "./constants";
import {TypeEnum} from "./type_enum";
import {ClassData} from "./class_data";
import {Data} from "./data";
 
export class SectionContents implements IStructure {
 
  public getMatcher(): IStructureRunnable {
    return star(alt(sta(Statements.MethodDef),
                    sta(Statements.InterfaceDef),
                    sta(Statements.Data),
                    sta(Statements.ClassData),
                    sta(Statements.Events),
                    sta(Statements.Constant),
                    sta(Statements.Aliases),
                    sta(Statements.TypePools),
                    sta(Statements.InterfaceLoad),
                    sta(Statements.ClassDefinitionLoad),
                    sub(Types),
                    sub(Constants),
                    sub(TypeEnum),
                    sub(Data),
                    sub(ClassData),
                    sta(Statements.Type)));
  }
}