Equations
- Lean.isDeprecated env declName = Option.isSome (Lean.ParametricAttribute.getParam? Lean.deprecatedAttr env declName)
Equations
- Lean.MessageData.isDeprecationWarning msg = Lean.MessageData.hasTag (fun a => a == Lean.Name.mkStr2 "Lean" "deprecatedAttr") msg
Equations
- Lean.getDeprecatedNewName env declName = match Lean.ParametricAttribute.getParam? Lean.deprecatedAttr env declName with | some newName? => newName? | none => none
def
Lean.checkDeprecated
{m : Type → Type}
[inst : Monad m]
[inst : Lean.MonadEnv m]
[inst : Lean.MonadLog m]
[inst : Lean.AddMessageContext m]
[inst : Lean.MonadOptions m]
(declName : Lean.Name)
:
m Unit
Equations
- One or more equations did not get rendered due to their size.