File: .lake/packages/lean4/src/lean/Lean/DocString/Extension.lean

full_name: Lean.initFn._@..lake.packages.lean4.src.lean.Lean.DocString.Extension._hyg.4
code: private builtin_initialize builtinDocStrings : IO.Ref (NameMap String) ← IO.mkRef {}
goal: IO (IO.Ref (Lean.NameMap String))

full_name: _private.«.lake».packages.lean4.src.lean.Lean.DocString.Extension.0.Lean.builtinDocStrings
code: private builtin_initialize builtinDocStrings : IO.Ref (NameMap String) ← IO.mkRef {}
goal: IO.Ref (Lean.NameMap String)

full_name: Lean.initFn._@..lake.packages.lean4.src.lean.Lean.DocString.Extension._hyg.46
code: private builtin_initialize docStringExt : MapDeclarationExtension String ← mkMapDeclarationExtension
goal: IO (Lean.MapDeclarationExtension String)

full_name: _private.«.lake».packages.lean4.src.lean.Lean.DocString.Extension.0.Lean.docStringExt
code: private builtin_initialize docStringExt : MapDeclarationExtension String ← mkMapDeclarationExtension
goal: Lean.MapDeclarationExtension String

full_name: Lean.addBuiltinDocString
code: def addBuiltinDocString (declName : Name) (docString : String) : IO Unit 
goal: IO Unit

full_name: Lean.addDocString
code: def addDocString [Monad m] [MonadError m] [MonadEnv m] (declName : Name) (docString : String) : m Unit 
goal: m Unit

full_name: Lean.addDocString'
code: def addDocString' [Monad m] [MonadError m] [MonadEnv m] (declName : Name) (docString? : Option String) : m Unit 
goal: m Unit

full_name: Lean.findSimpleDocString?
code: /--
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.
-/
def findSimpleDocString? (env : Environment) (declName : Name) (includeBuiltin := true) : IO (Option String) 
goal: IO (Option String)

full_name: Lean.ModuleDoc.doc
code: structure ModuleDoc where
  doc : String
  declarationRange : DeclarationRange
goal: String

full_name: Lean.ModuleDoc.declarationRange
code: structure ModuleDoc where
  doc : String
  declarationRange : DeclarationRange
goal: Lean.DeclarationRange

full_name: Lean.ModuleDoc
code: structure ModuleDoc where
  doc : String
  declarationRange : DeclarationRange
goal: Type

full_name: Lean.initFn._@..lake.packages.lean4.src.lean.Lean.DocString.Extension._hyg.375
code: private builtin_initialize moduleDocExt : SimplePersistentEnvExtension ModuleDoc (PersistentArray ModuleDoc) ← registerSimplePersistentEnvExtension {
  addImportedFn := fun _ => {}
  addEntryFn    := fun s e => s.push e
  toArrayFn     := fun es => es.toArray
}
goal: IO (Lean.SimplePersistentEnvExtension Lean.ModuleDoc (Lean.PersistentArray Lean.ModuleDoc))

full_name: _private.«.lake».packages.lean4.src.lean.Lean.DocString.Extension.0.Lean.moduleDocExt
code: private builtin_initialize moduleDocExt : SimplePersistentEnvExtension ModuleDoc (PersistentArray ModuleDoc) ← registerSimplePersistentEnvExtension {
  addImportedFn := fun _ => {}
  addEntryFn    := fun s e => s.push e
  toArrayFn     := fun es => es.toArray
}
goal: Lean.SimplePersistentEnvExtension Lean.ModuleDoc (Lean.PersistentArray Lean.ModuleDoc)

full_name: Lean.addMainModuleDoc
code: def addMainModuleDoc (env : Environment) (doc : ModuleDoc) : Environment 
goal: Lean.Environment

full_name: Lean.getMainModuleDoc
code: def getMainModuleDoc (env : Environment) : PersistentArray ModuleDoc 
goal: Lean.PersistentArray Lean.ModuleDoc

full_name: Lean.getModuleDoc?
code: def getModuleDoc? (env : Environment) (moduleName : Name) : Option (Array ModuleDoc) 
goal: Option (Array Lean.ModuleDoc)

full_name: Lean.getDocStringText
code: def getDocStringText [Monad m] [MonadError m] (stx : TSyntax `Lean.Parser.Command.docComment) : m String 
goal: m String