module
- data ConstantDocs
- data DataDocs
- data DataFieldDocs
- data EnumCaseDocs
- data EnumDocs
- data ExternFieldDocs
- data ExternFunctionDocs
- data ExternTypeDocs
- data FunctionDocs
- data ModuleDocs
- enum TypeDocs
- func docsToMarkdown docs
- func docsToMarkup
- extern inspect value
data The documentation of a constant declaration. If a constant resolves to a function, it can still be called.
/// The docs string
let constantName = 42
name
- The name of the constant declaration.docs
- The docs as text.
data The documentation of a data declaration.
/// The docs string
data DataName {
someFields with, params
orWithout
}
name
- The name of the data declarationdocs
- The docs as text.fields
- A List of fields of DataFieldDocs
data Describes a field of a data type
name
- name of the data propertydocs
- The docs as text.params
- A List of the data field's parameter names. Can be treated as function if not Nil.
data The documentation for a specific enum case.
name
- The name of the enum case.docs
- The docs as text.type
- The underlaying type of the enum case.
data Contains all documentation information for a given enum.
name
- Name of the enum.docs
- The docs as text.cases
- Each enum case as EnumCaseDocs.
data Describes a field of a data type
name
- name of the data propertydocs
- The docs as text.params
- A List of the extern field's parameter names. Can be treated as function if not Nil.
data The documentation of an extern function declaration.
/// The docs string
extern externFunctionName params, asList
name
- The name of the external function.docs
- The docs as text.params
- A list of its paramter names. Can be treated as constant if Nil.
data The documentation of an extern type declaration.
/// The docs string
extern ExternTypeName {
someFields with, params
orWithout
}
name
- The name of the external type.docs
- The docs as text.fields
- a list of ExternFieldDocs.
data The documentation of a function declaration.
/// The docs string
func functionName { params => }
name
- name of the function.docs
- The docs as text.params
- A list of the function's parameter names.
data The documentation of a module declaration.
/// The docs string
module internalModuleName
name
- name of the moduletypes
- all types declared in the moduledocs
- The docs as text.
enum All possible docs inspection values.
func docsToMarkdown docs
func docsToMarkup
func inspect value
Inspects a given value for documentation. @returns TypeDocs