Skip to content

v2.gen.c #

fn Gen.new #

fn Gen.new(mod &ssa.Module) &Gen

struct Gen #

struct Gen {
	mod &ssa.Module
pub mut:
	link_builtin bool // When true, skip emitting runtime helpers (they come from builtin.o)
mut:
	sb              strings.Builder
	indent          int
	current_fn_name string
	current_fn_idx  int
	current_fn_ret  ssa.TypeID
}

fn (Gen) gen #

fn (mut g Gen) gen() string