(reflection)
| 751 | ReflectionKind.Class, |
| 752 | ReflectionKind.Interface, |
| 753 | ReflectionKind.Enum, |
| 754 | |
| 755 | ReflectionKind.TypeAlias, |
| 756 | ].includes(model.parent.kind) |
| 757 | ) |
| 758 | memberName = `${model.parent.name}.${memberName}`; |
| 759 | } |
| 760 | if (hasCard) md.push(`<MemberCard>`); |
| 761 | md.push( |
| 762 | heading( |
| 763 | options.headingLevel, |
| 764 | anchor ? `${memberName} {#${anchor}}` : memberName |
| 765 | ) |
| 766 | ); |
| 767 | } |
| 768 | |
| 769 | const getMember = (reflection) => { |
| 770 | if ( |
| 771 | [ |
| 772 | ReflectionKind.Class, |
| 773 | ReflectionKind.Interface, |
| 774 | ReflectionKind.Enum, |
| 775 | ].includes(reflection.kind) |
| 776 | ) { |
| 777 | return this.partials.memberWithGroups(reflection, { |
| 778 | headingLevel: options.headingLevel + 1, |
| 779 | }); |
| 780 | } |
| 781 | |
| 782 | if (reflection.kind === ReflectionKind.Accessor) |
| 783 | return this.partials.accessor(reflection, { |
| 784 | headingLevel: options.headingLevel + 1, |
| 785 | }); |
| 786 | |
| 787 | if (reflection.signatures) { |
| 788 | return reflection.signatures |
| 789 | ?.map((signature) => { |
| 790 | const signatureMd = []; |
| 791 | const multipleSignatures = |
| 792 | reflection.signatures && reflection.signatures?.length > 1; |
| 793 | |
| 794 | if (multipleSignatures) { |
| 795 | signatureMd.push( |
| 796 | heading( |
| 797 | options.headingLevel + 1, |
| 798 | `${escapeChars(signature.name)}(${signature.parameters |
| 799 | ?.map((param) => param.name) |
| 800 | .join(', ')})` |
| 801 | ) |
| 802 | ); |
| 803 | } |
| 804 | signatureMd.push( |
| 805 | this.partials.signature(signature, { |
| 806 | headingLevel: multipleSignatures |
| 807 | ? options.headingLevel + 2 |
| 808 | : options.headingLevel + 1, |
| 809 | nested: options.nested, |
| 810 | }) |
nothing calls this directly
no test coverage detected