| 7177 | // windows it wherever it lands. Charging the full body kept it as the |
| 7178 | // most important member and then had no room left for anything beside it. |
| 7179 | const sizeOf = (r: ExploreRange) => (oversizeSpineSet.has(r) ? spineWindowOf(r) : [r]) |
| 7180 | .reduce((n, w) => n + fileLines.slice(w.start - 1, w.end).join('\n').length, 0); |
| 7181 | let kept = 0; |
| 7182 | // Rendered size of what is kept so far, once the first incidental member |
| 7183 | // is weighed. Every protected member sorts ahead of it, so this is the |