Compare commits

...

2 Commits

Author SHA1 Message Date
Kim Morrison
f87b72c98a chore: make Lean.Elab.Command.mkMetaContext public 2024-11-18 16:54:29 +11:00
Kim Morrison
ea6601e30f chore: make Command.mkMetaContext non-private 2024-11-18 16:47:47 +11:00

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