Captures the notion of a value based attributes, attrKind is things like
EnumAttributes.
- getValue {α : Type} [Inhabited α] [ToString α] : attrKind α → Lean.Environment → Lean.Name → Option String
Given a certain value based attribute, an
Environmentand theNameof a declaration returns the value of the attribute on this declaration if present.
Instances
Obtain the value of an enum attribute for a certain name.
Equations
- DocGen4.enumGetValue attr env decl = do let val ← attr.getValue env decl some (toString val)
Instances For
Equations
- DocGen4.instValueAttrEnumAttributes = { getValue := fun {α : Type} [Inhabited α] [ToString α] => DocGen4.enumGetValue }
Obtain the value of a parametric attribute for a certain name.
Equations
Instances For
Equations
- DocGen4.instValueAttrParametricAttribute = { getValue := fun {α : Type} [Inhabited α] [ToString α] => DocGen4.parametricGetValue }
Instances For
Instances For
The list of all tag based attributes doc-gen knows about and can recover.
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
The list of all enum based attributes doc-gen knows about and can recover.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- DocGen4.instToStringExternAttrData_docGen4 = { toString := fun (data : Lean.ExternAttrData) => " ".intercalate (List.map toString data.entries) }
Equations
- One or more equations did not get rendered due to their size.
The list of all parametric attributes (that is, attributes with any kind of information attached) doc-gen knows about and can recover.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- DocGen4.getValuesAux decl attr = do let env ← Lean.getEnv pure (DocGen4.ValueAttr.getValue attr env decl)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- DocGen4.hasSimp decl = do let thms ← liftM Lean.Meta.simpExtension.getTheorems if thms.isLemma (Lean.Meta.Origin.decl decl) = true then pure (some "simp") else pure none
Instances For
Equations
- DocGen4.hasCsimp decl = do let env ← Lean.getEnv if Lean.Compiler.hasCSimpAttribute env decl = true then pure (some "csimp") else pure none
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
The list of custom attributes, that don't fit in the parametric or enum attribute kinds, doc-gen konws about and can recover.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
The main entry point for recovering all attribute values for a given declaration.
Equations
- One or more equations did not get rendered due to their size.