Skip to content

Commit

Permalink
chore: make Lean.Elab.Command.mkMetaContext public
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em committed Nov 18, 2024
1 parent ea6601e commit f87b72c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Lean/Elab/Command.lean
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,10 @@ private def getVarDecls (s : State) : Array Syntax :=
instance {α} : Inhabited (CommandElabM α) where
default := throw default

/--
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 f87b72c

Please sign in to comment.