fix: only pp.analyze when all is not set

This commit is contained in:
Daniel Selsam 2021-07-30 11:37:21 -07:00 committed by Sebastian Ullrich
parent 126db5fb12
commit 1f183cdc30

View file

@ -391,7 +391,7 @@ def delab (currNamespace : Name) (openDecls : List OpenDecl) (e : Expr) (options
catch _ => pure ()
let e ← if getPPInstantiateMVars opts then ← Meta.instantiateMVars e else e
let optionsPerPos ←
if getPPAnalyze opts && optionsPerPos.isEmpty then
if !getPPAll opts && getPPAnalyze opts && optionsPerPos.isEmpty then
topDownAnalyze e
else optionsPerPos
catchInternalId Delaborator.delabFailureId