module diode.vdoc.as_code

Code to format vdoc objects as code.Hmm Foo

Code Map

//! Code to format vdoc objects as code.Hmm 
module diode.vdoc.as_code;


//! Formats a vdoc module into code.
class FormatAsCode : Value
{
public:
	this(d: Driver, e: Engine, root: VdocRoot, v: Value, type: string) { }
	fn toText(n: ir.Node, sink: scope (Sink)) { }
}

struct State
{
public:
	drv: Driver;
	mod: Parent;
	root: VdocRoot;
	engine: Engine;
	parent: Parent;
	tabs: string;
	tabsProt: string;
	lastKind: Kind;
	lastAccess: Access;
	hasProt: bool;


public:
	fn setup(drv: Driver, engine: Engine, root: VdocRoot, mod: Parent, parent: Parent) { }
	fn setup(oldState: State, parent: Parent) { }
}

fn flushaProtAndNewLine(s: State, access: Access, kind: Kind, spacing: string, sink: scope (Sink)) { }
fn drawName(s: State, named: Named, htmlClass: string, sink: scope (Sink)) { }
fn drawName(s: State, named: Named, name: string, htmlClass: string, sink: scope (Sink)) { }
fn drawModule(s: State, sink: scope (Sink)) { }
fn drawChildren(s: State, sink: scope (Sink)) { }
fn drawBrief(s: State, n: Named, sink: scope (Sink)) { }
fn drawParentList(sink: scope (Sink), parents: scope (scope (string)[])) { }
fn drawImports(s: State, access: Access, sink: scope (Sink)) { }
fn drawEnums(s: State, access: Access, sink: scope (Sink)) { }
fn drawEnum(s: State, c: Parent, sink: scope (Sink)) { }
fn drawAliases(s: State, access: Access, sink: scope (Sink)) { }
fn drawAlias(s: State, c: Alias, sink: scope (Sink)) { }
fn drawEnumDecls(s: State, access: Access, sink: scope (Sink)) { }
fn drawEnumDecl(s: State, c: EnumDecl, sink: scope (Sink)) { }
fn drawFields(s: State, access: Access, sink: scope (Sink)) { }
fn drawLocals(s: State, access: Access, sink: scope (Sink)) { }
fn drawGlobals(s: State, access: Access, sink: scope (Sink)) { }
fn drawVariables(s: State, access: Access, storage: Storage, sink: scope (Sink)) { }
fn drawFns(s: State, access: Access, sink: scope (Sink)) { }
fn drawCtors(s: State, access: Access, sink: scope (Sink)) { }
fn drawMembers(s: State, access: Access, sink: scope (Sink)) { }
fn drawCtor(s: State, f: Function, sink: scope (Sink)) { }
fn drawFn(s: State, f: Function, prefix: string, sink: scope (Sink)) { }
fn drawInterfaces(s: State, access: Access, sink: scope (Sink)) { }
fn drawInterface(s: State, c: Parent, sink: scope (Sink)) { }
fn drawClasses(s: State, access: Access, sink: scope (Sink)) { }
fn drawClass(s: State, c: Parent, sink: scope (Sink)) { }
fn drawUnions(s: State, access: Access, sink: scope (Sink)) { }
fn drawStructs(s: State, access: Access, sink: scope (Sink)) { }
fn drawAggrs(s: State, access: Access, kind: Kind, prefix: string, sink: scope (Sink)) { }
fn drawAggr(s: State, c: Parent, prefix: string, sink: scope (Sink)) { }
class FormatAsCode : Value

Formats a vdoc module into code.