abstract class SilicaCore::Generator

Direct Known Subclasses

Defined in:

silica_core/generator.cr

Instance Method Summary

Instance Method Detail

abstract def block(header : String, separator : Bool = false, &) : self #

[View source]
abstract def close #

[View source]
abstract def comment(line : String) : self #

[View source]
abstract def constant(type : String, name : String, value : String) : self #

[View source]
abstract def doc(& : DocGenerator -> ) : self #

[View source]
abstract def emit(line : String, no_sep = false, no_newline = false) : self #

[View source]
abstract def escape(str : String) : String #

[View source]
abstract def escape_keywords(s : String) : String #

[View source]
abstract def g_alias(name : String, tgt : String) : self #

[View source]
abstract def g_constant(type : String, name : String, value : String) : self #

[View source]
abstract def g_enum(name : String, type : String, &) : self #

[View source]
abstract def g_enum_member(name : String, value : String) : self #

[View source]
abstract def g_enum_member(name : String) : self #

[View source]
abstract def g_module(name : String, includes : Array(String) = [] of String, &) : self #

[View source]
abstract def g_struct(name : String, ancestors : Array(String) = [] of String, &) : self #

[View source]
def generate(&) #

[View source]
abstract def generic(type : String, args : Array(String)) : String #

[View source]
abstract def generic(type : String, *args : String) : String #

[View source]
def include_guard #

[View source]
abstract def instance(type : String, name : String, args : Array(String) = [] of String) : self #

[View source]
abstract def namespace(name : String, &) : self #

[View source]
abstract def path(parts : Array(String)) : String #

[View source]
abstract def path(*parts : String) : String #

[View source]
abstract def require_file(name : String, local = false) : self #

[View source]
abstract def require_support : self #

[View source]
abstract def separator : self #

[View source]