chore: make Lean.Elab.Command.mkMetaContext public (#6113)
This commit is contained in:
parent
e10fac93a6
commit
5a99cb326c
1 changed files with 5 additions and 1 deletions
|
|
@ -555,7 +555,11 @@ private def getVarDecls (s : State) : Array Syntax :=
|
|||
instance {α} : Inhabited (CommandElabM α) where
|
||||
default := throw default
|
||||
|
||||
private def mkMetaContext : Meta.Context := {
|
||||
/--
|
||||
The environment linter framework needs to be able to run linters with the same context
|
||||
as `liftTermElabM`, so we expose that context as a public function here.
|
||||
-/
|
||||
def mkMetaContext : Meta.Context := {
|
||||
config := { foApprox := true, ctxApprox := true, quasiPatternApprox := true }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue