chore: rebase on 2022-07-10
This commit is contained in:
parent
625be05aa8
commit
0824e6b22b
1 changed files with 3 additions and 4 deletions
|
|
@ -7,6 +7,7 @@ Authors: E.W.Ayers
|
|||
import Lean.Widget.Basic
|
||||
import Lean.Data.Json
|
||||
import Lean.Environment
|
||||
import Lean.Elab.Eval
|
||||
import Lean.Server
|
||||
|
||||
open Lean
|
||||
|
|
@ -145,10 +146,8 @@ def saveWidgetInfo [Monad m] [MonadEnv m] [MonadError m] [MonadInfoTree m] (widg
|
|||
|
||||
syntax (name := widgetCmd) "#widget " ident term : command
|
||||
|
||||
private unsafe def evalJsonUnsafe (stx : Syntax) : TermElabM Json := do
|
||||
let e ← Term.elabTerm stx (mkConst ``Json)
|
||||
let e ← Meta.instantiateMVars e
|
||||
Term.evalExpr Json ``Json e
|
||||
private unsafe def evalJsonUnsafe (stx : Syntax) : TermElabM Json := do
|
||||
Term.evalTerm Json (mkConst ``Json) stx
|
||||
|
||||
@[implementedBy evalJsonUnsafe]
|
||||
private opaque evalJson (stx : Syntax) : TermElabM Json
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue