Equations
- Lean.Linter.isDeprecated env declName = Option.isSome (Lean.ParametricAttribute.getParam? Lean.Linter.deprecatedAttr env declName)
Equations
- Lean.MessageData.isDeprecationWarning msg = Lean.MessageData.hasTag (fun x => x == `Lean.Linter.deprecatedAttr) msg
Equations
- Lean.Linter.getDeprecatedNewName env declName = Option.getD (Lean.ParametricAttribute.getParam? Lean.Linter.deprecatedAttr env declName) none
def
Lean.Linter.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.