def
Lean.Environment.addDecl
(env : Lean.Environment)
(opts : Lean.Options)
(decl : Lean.Declaration)
(cancelTk? : Option IO.CancelToken := none)
:
Instances For
def
Lean.Environment.addAndCompile
(env : Lean.Environment)
(opts : Lean.Options)
(decl : Lean.Declaration)
(cancelTk? : Option IO.CancelToken := none)
:
Equations
- env.addAndCompile opts decl cancelTk? = do let env ← env.addDecl opts decl cancelTk? env.compileDecl opts decl
Instances For
Equations
- Lean.addAndCompile decl = do Lean.addDecl decl Lean.compileDecl decl