Equations
- Lean.addBuiltinDocString declName docString = ST.Ref.modify Lean.builtinDocStrings✝ fun (x : Lean.NameMap String) => x.insert declName docString.removeLeadingSpaces
Instances For
def
Lean.addDocString
{m : Type → Type}
[Monad m]
[Lean.MonadError m]
[Lean.MonadEnv m]
(declName : Lean.Name)
(docString : String)
:
m Unit
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.addDocString'
{m : Type → Type}
[Monad m]
[Lean.MonadError m]
[Lean.MonadEnv m]
(declName : Lean.Name)
(docString? : Option String)
:
m Unit
Equations
- Lean.addDocString' declName (some docString) = Lean.addDocString declName docString
- Lean.addDocString' declName none = pure ()
Instances For
def
Lean.findSimpleDocString?
(env : Lean.Environment)
(declName : Lean.Name)
(includeBuiltin : Bool := true)
:
Finds a docstring without performing any alias resolution or enrichment with extra metadata.
Docstrings to be shown to a user should be looked up with Lean.findDocString?
instead.
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
- Lean.getMainModuleDoc env = Lean.moduleDocExt✝.getState env
Instances For
Equations
- Lean.getModuleDoc? env moduleName = Option.map (fun (modIdx : Lean.ModuleIdx) => Lean.PersistentEnvExtension.getModuleEntries Lean.moduleDocExt✝ env modIdx) (env.getModuleIdx? moduleName)
Instances For
def
Lean.getDocStringText
{m : Type → Type}
[Monad m]
[Lean.MonadError m]
(stx : Lean.TSyntax `Lean.Parser.Command.docComment)
:
m String
Equations
- One or more equations did not get rendered due to their size.