( fn: Node, module: SourceModule, ctx: ThisReadsContext )
| 1790 | // `thisReadsOf`: class constructors, non-detached class/ES5-prototype methods, |
| 1791 | // and provably unreferenced top-level functions in non-entry modules |
| 1792 | const isSkippedFunction = ( |
| 1793 | fn: Node, |
| 1794 | module: SourceModule, |
| 1795 | ctx: ThisReadsContext |
| 1796 | ): boolean => { |
| 1797 | const cached = ctx.skippedCache.get(fn) |
| 1798 | if (cached !== undefined) return cached |
| 1799 | // provisionally false while computing to prevent any cycle from skipping unsafely |
| 1800 | ctx.skippedCache.set(fn, false) |
| 1801 | const result = computeSkippedFunction(fn, module, ctx) |
| 1802 | ctx.skippedCache.set(fn, result) |
| 1803 | return result |
| 1804 | } |
| 1805 | |
| 1806 | const computeSkippedFunction = ( |
| 1807 | fn: Node, |
no test coverage detected