(c: ExploreCluster)
| 7131 | * them. 0 for a cluster with nothing the query asked for. |
| 7132 | */ |
| 7133 | const protectedCoreCost = (c: ExploreCluster): number => { |
| 7134 | const core = c.members.filter(isProtectedMember); |
| 7135 | if (core.length === 0) return 0; |
| 7136 | const parts = core.length === c.members.length ? buildSection(c) : partsOfMembers(core); |
| 7137 | return sectionText(dedupeSpans(parts).parts).length + GAP_MARKER.length; |
| 7138 | }; |
| 7139 | |
| 7140 | /** |
| 7141 | * Shrink an oversize cluster to the highest-importance symbols inside it |
nothing calls this directly
no outgoing calls
no test coverage detected