({ precompiler }: TrackedPrecompiler)
| 823 | const cachesByCwd: Record<string, AnswerCache | null> = {} |
| 824 | |
| 825 | const cacheOf = ({ precompiler }: TrackedPrecompiler) => { |
| 826 | const cwd = precompiler.graph.cwd! |
| 827 | if (!(cwd in cachesByCwd)) { |
| 828 | try { |
| 829 | cachesByCwd[cwd] = new AnswerCache(cwd) |
| 830 | } catch { |
| 831 | cachesByCwd[cwd] = null |
| 832 | } |
| 833 | } |
| 834 | return cachesByCwd[cwd] ?? undefined |
| 835 | } |
| 836 | |
| 837 | // an answer stored for what a key names whose snapshot still holds |
| 838 | const cachedAnswerOf = ( |
no outgoing calls
no test coverage detected