Skip to content

Commit

Permalink
chore: make Lean.Elab.Command.mkMetaContext public (#6113)
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em authored Nov 18, 2024
1 parent e10fac9 commit 5a99cb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Lean/Elab/Command.lean
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}

Expand Down

0 comments on commit 5a99cb3

Please sign in to comment.