Environment extension for declaration ranges #
Equations
- Lean.addBuiltinDeclarationRanges declName declRanges = ST.Ref.modify Lean.builtinDeclRanges fun (x : Lean.NameMap Lean.DeclarationRanges) => x.insert declName declRanges
Instances For
def
Lean.addDeclarationRanges
{m : Type → Type}
[Monad m]
[Lean.MonadEnv m]
(declName : Lean.Name)
(declRanges : Lean.DeclarationRanges)
:
m Unit
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.findDeclarationRangesCore?
{m : Type → Type}
[Monad m]
[Lean.MonadEnv m]
(declName : Lean.Name)
:
Equations
- Lean.findDeclarationRangesCore? declName = do let __do_lift ← Lean.getEnv pure (Lean.declRangeExt.find? __do_lift declName)
Instances For
def
Lean.findDeclarationRanges?
{m : Type → Type}
[Monad m]
[Lean.MonadEnv m]
[MonadLiftT BaseIO m]
(declName : Lean.Name)
:
Equations
- One or more equations did not get rendered due to their size.