Equations
- Lean.addBuiltinDocString declName docString = ST.Ref.modify Lean.builtinDocStrings fun (x : Lake.NameMap String) => Lean.NameMap.insert x declName (Lean.removeLeadingSpaces docString)
Instances For
def
Lean.addDocString
{m : Type → Type}
[Lean.MonadEnv m]
(declName : Lake.Name)
(docString : String)
:
m Unit
Equations
- Lean.addDocString declName docString = Lean.modifyEnv fun (env : Lean.Environment) => Lean.MapDeclarationExtension.insert Lean.docStringExt env declName (Lean.removeLeadingSpaces docString)
Instances For
def
Lean.addDocString'
{m : Type → Type}
[Monad m]
[Lean.MonadEnv m]
(declName : Lake.Name)
(docString? : Option String)
:
m Unit
Equations
- Lean.addDocString' declName docString? = match docString? with | some docString => Lean.addDocString declName docString | none => pure ()
Instances For
def
Lean.findDocString?
(env : Lean.Environment)
(declName : Lake.Name)
(includeBuiltin : optParam Bool true)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
- doc : String
- declarationRange : Lean.DeclarationRange
Instances For
Equations
- Lean.addMainModuleDoc env doc = Lean.PersistentEnvExtension.addEntry Lean.moduleDocExt env doc
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.getDocStringText
{m : Type → Type}
[Monad m]
[Lean.MonadError m]
[Lean.MonadRef m]
(stx : Lean.TSyntax `Lean.Parser.Command.docComment)
:
m String
Equations
- One or more equations did not get rendered due to their size.