@abaplint/core
Version:
abaplint - Core API
16 lines • 1.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClassDefinition = void 0;
const Statements = require("../../2_statements/statements");
const _combi_1 = require("./_combi");
const private_section_1 = require("./private_section");
const protected_section_1 = require("./protected_section");
const public_section_1 = require("./public_section");
class ClassDefinition {
getMatcher() {
const body = (0, _combi_1.seq)((0, _combi_1.opt)((0, _combi_1.sta)(Statements.SetExtendedCheck)), (0, _combi_1.star)((0, _combi_1.sta)(Statements.TypePools)), (0, _combi_1.opt)((0, _combi_1.sub)(public_section_1.PublicSection)), (0, _combi_1.opt)((0, _combi_1.sub)(protected_section_1.ProtectedSection)), (0, _combi_1.opt)((0, _combi_1.sub)(private_section_1.PrivateSection)), (0, _combi_1.opt)((0, _combi_1.sta)(Statements.SetExtendedCheck)));
return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.ClassDefinition), body, (0, _combi_1.sta)(Statements.EndClass));
}
}
exports.ClassDefinition = ClassDefinition;
//# sourceMappingURL=class_definition.js.map