chore: add helper method

This commit is contained in:
Leonardo de Moura 2019-11-14 09:52:36 -08:00
parent 83e2796e96
commit 238c2b3d17

View file

@ -124,6 +124,9 @@ instance MetaM.inhabited {α} : Inhabited (MetaM α) :=
@[inline] def getLCtx : MetaM LocalContext :=
do ctx ← read; pure ctx.lctx
@[inline] def getConfig : MetaM Config :=
do ctx ← read; pure ctx.config
@[inline] def getMCtx : MetaM MetavarContext :=
do s ← get; pure s.mctx