Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(cache): split a
getCached
function out (#360)
- basically, refactor the `getDiagnostics` a tiny bit to also handle what the `getCompiled` function needs - then just call `getCached` from both instead - `getDiagnostics` and `getCompiled` were near identical except for the cache they used and `checkImports`, which are both parameters now - `getCompiled` also had a logging statement (called in both `noCache` and w/ cache branches), which was moved to before the call to `getCompiled` instead - the `type` param was composed into another function in `getDiagnostics` before the call too `getCached` now - this simplifies all the cache code to one main function now - remove the `markAsDirty` call under `noCache`, as well, "dirty" has no meaning for `noCache` anyway - this simplifies that one `if` statement now too
- Loading branch information