chore: add helper method
This commit is contained in:
parent
83e2796e96
commit
238c2b3d17
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue