Equations
- Lean.addBuiltinDocString declName docString = ST.Ref.modify Lean.builtinDocStrings fun (x : Lake.NameMap String) => x.insert declName docString.removeLeadingSpaces
Instances For
def
Lean.addDocString
{m : Type → Type}
[Monad m]
[Lean.MonadError m]
[Lean.MonadEnv m]
(declName : Lake.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 : 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
- 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]
[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.