1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 16:33:03 +03:00

Define dead code analysis using analyzeTerm.

This commit is contained in:
Rob Rix 2018-03-06 16:40:15 -05:00
parent 2ab50cda5e
commit 25e5af382e

View File

@ -79,6 +79,6 @@ instance ( Corecursive t
, Semigroup (Cell (LocationFor v) v)
)
=> MonadAnalysis t v (DeadCodeAnalysis t v) where
evaluateTerm = foldSubterms (\ term -> do
analyzeTerm term = do
revive (embedSubterm term)
eval term)
eval term