Documentation
Lean
.
Linter
.
Deprecated
Search
return to top
source
Imports
Lean.Attributes
Lean.Linter.Basic
Lean.Elab.InfoTree.Main
Imported by
Lean
.
Linter
.
linter
.
deprecated
Lean
.
Linter
.
DeprecationEntry
Lean
.
Linter
.
instInhabitedDeprecationEntry
Lean
.
Linter
.
deprecatedAttr
Lean
.
Linter
.
isDeprecated
Lean
.
MessageData
.
isDeprecationWarning
Lean
.
Linter
.
getDeprecatedNewName
Lean
.
Linter
.
checkDeprecated
source
opaque
Lean
.
Linter
.
linter
.
deprecated
:
Lean.Option
Bool
source
structure
Lean
.
Linter
.
DeprecationEntry
:
Type
newName? :
Option
Name
text? :
Option
String
since? :
Option
String
Instances For
source
instance
Lean
.
Linter
.
instInhabitedDeprecationEntry
:
Inhabited
DeprecationEntry
Equations
source
opaque
Lean
.
Linter
.
deprecatedAttr
:
ParametricAttribute
DeprecationEntry
source
def
Lean
.
Linter
.
isDeprecated
(
env
:
Environment
)
(
declName
:
Name
)
:
Bool
Equations
Instances For
source
def
Lean
.
MessageData
.
isDeprecationWarning
(
msg
:
MessageData
)
:
Bool
Equations
Instances For
source
def
Lean
.
Linter
.
getDeprecatedNewName
(
env
:
Environment
)
(
declName
:
Name
)
:
Option
Name
Equations
Instances For
source
def
Lean
.
Linter
.
checkDeprecated
{
m
:
Type
→
Type
}
[
Monad
m
]
[
MonadEnv
m
]
[
MonadLog
m
]
[
AddMessageContext
m
]
[
MonadOptions
m
]
(
declName
:
Name
)
:
m
Unit
Equations
Instances For