A local copy of name resolution state that allows us to immediately use new open decls
in further name resolution as in open Lean Elab
.
- openDecls : List Lean.OpenDecl
- currNamespace : Lean.Name
Instances For
instance
Lean.Elab.OpenDecl.instMonadResolveNameM
{m : Type → Type}
[Monad m]
[MonadLiftT (ST IO.RealWorld) m]
:
Lean.MonadResolveName Lean.Elab.OpenDecl.M
Equations
- One or more equations did not get rendered due to their size.
def
Lean.Elab.OpenDecl.resolveId
{m : Type → Type}
[Monad m]
[Lean.MonadEnv m]
[MonadExceptOf Lean.Exception m]
[Lean.MonadRef m]
[Lean.AddMessageContext m]
[MonadLiftT (ST IO.RealWorld) m]
(ns : Lean.Name)
(idStx : Lean.Syntax)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Elab.OpenDecl.elabOpenDecl
{m : Type → Type}
[Monad m]
[Lean.MonadEnv m]
[MonadExceptOf Lean.Exception m]
[Lean.MonadRef m]
[Lean.AddMessageContext m]
[MonadLiftT (ST IO.RealWorld) m]
[Lean.MonadLog m]
[Lean.MonadResolveName m]
[Lean.Elab.MonadInfoTree m]
(stx : Lean.TSyntax `Lean.Parser.Command.openDecl)
:
m (List Lean.OpenDecl)
Instances For
def
Lean.Elab.OpenDecl.resolveNameUsingNamespaces
{m : Type → Type}
[Monad m]
[Lean.MonadEnv m]
[MonadExceptOf Lean.Exception m]
[Lean.MonadRef m]
[Lean.AddMessageContext m]
[MonadLiftT (ST IO.RealWorld) m]
[Lean.MonadLog m]
[Lean.MonadResolveName m]
(nss : List Lean.Name)
(idStx : Lean.Ident)
: