UNPKG

@abaplint/core

Version:
16 lines 710 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.If = void 0; const Statements = require("../../2_statements/statements"); const _combi_1 = require("./_combi"); const body_1 = require("./body"); const elseif_1 = require("./elseif"); const else_1 = require("./else"); class If { getMatcher() { const contents = (0, _combi_1.seq)((0, _combi_1.opt)((0, _combi_1.sub)(body_1.Body)), (0, _combi_1.star)((0, _combi_1.sub)(elseif_1.ElseIf)), (0, _combi_1.opt)((0, _combi_1.sub)(else_1.Else))); return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.If), contents, (0, _combi_1.sta)(Statements.EndIf)); } } exports.If = If; //# sourceMappingURL=if.js.map