export function ecmaPrivateClassMembersPlugin() {
    return {
        name: 'ecma-private-class-members-plugin',
        analyzePhase({ ts, node, moduleDoc }) {
            if (!ts.isClassElement(node)) {
                return;
            }
            const className = ts.isClassDeclaration(node?.parent) && node.parent.name?.getText();
            const classDoc = moduleDoc?.declarations?.find(declaration => declaration.name === className);
            const memberName = node?.name?.getText();
            const memberDoc = classDoc?.members?.find(member => member.name === memberName);
            if (memberName?.startsWith('#') && memberDoc) {
                memberDoc.privacy = 'private';
            }
        },
    };
}
//# sourceMappingURL=ecma-private-class-members.js.map