module Mint::DocumentationGenerator

Overview

This module contains funcions for generating JSON compatible API documentation of souce code. It uses a unfified sutructure for entities and top-level entities.

It is used in two places currently:

Included Modules

Extended Modules

Defined in:

documentation_generator.cr

Instance Method Summary

Instance methods inherited from module Mint::Errorable

error!(name : Symbol, &) error!, unreachable!(message : String) unreachable!

Instance Method Detail

def entity(*, arguments : Array(Argument) | Nil = nil, description : Ast::Comment | Nil = nil, value : Ast::Node | Nil = nil, mapping : String | Nil = nil, type : Ast::Node | Nil = nil, name : String, kind : Kind) #

[View source]
def generate(node : Ast::TypeDefinitionField) #

[View source]
def generate(node : Ast::TypeVariant) #

[View source]
def generate(node : Ast::Property) #

[View source]
def generate(node : Ast::Constant) #

[View source]
def generate(node : Ast::Function) #

[View source]
def generate(node : Ast::Signal) #

[View source]
def generate(node : Ast::State) #

[View source]
def generate(node : Ast::Get) #

[View source]
def generate(node : Ast::Node) #

[View source]
def generate(nodes : Array(Ast::Node)) #

[View source]
def generate(node : Nil) : Nil #

[View source]
def highlight(formatted : String) #

[View source]
def highlight(node : Nil) #

[View source]
def highlight(node : Ast::Node) #

[View source]
def markdown(node : Ast::Comment | Nil) #

[View source]
def resolve(node : Ast::Component) : TopLevelEntity #

[View source]
def resolve(node : Ast::Store) : TopLevelEntity #

[View source]
def resolve(node : Ast::Provider) : TopLevelEntity #

[View source]
def resolve(node : Ast::Module) : TopLevelEntity #

[View source]
def resolve(node : Ast::TypeDefinition) : TopLevelEntity #

[View source]
def resolve(node : Ast::Node) #

[View source]
def resolve(ast : Ast) : Array(TopLevelEntity) #

[View source]