chore: make Lean.Elab.Command.mkMetaContext public (#6113)

This commit is contained in:
Kim Morrison 2024-11-18 17:14:34 +11:00 committed by GitHub
parent e10fac93a6
commit 5a99cb326c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 }
}