UNPKG

@abaplint/core

Version:
16 lines 719 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Try = void 0; const Statements = require("../../2_statements/statements"); const _combi_1 = require("./_combi"); const catch_1 = require("./catch"); const body_1 = require("./body"); const cleanup_1 = require("./cleanup"); class Try { getMatcher() { const block = (0, _combi_1.seq)((0, _combi_1.opt)((0, _combi_1.sub)(body_1.Body)), (0, _combi_1.star)((0, _combi_1.sub)(catch_1.Catch)), (0, _combi_1.opt)((0, _combi_1.sub)(cleanup_1.Cleanup))); return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.Try), block, (0, _combi_1.sta)(Statements.EndTry)); } } exports.Try = Try; //# sourceMappingURL=try.js.map