v.builder #

fn compile #

fn compile(command string, pref &pref.Preferences)

fn msvc_string_flags #

fn msvc_string_flags(cflags []cflag.CFlag) MsvcStringFlags

pub fn (cflags []CFlag) msvc_string_flags() MsvcStringFlags {

fn new_builder #

fn new_builder(pref &pref.Preferences) Builder

struct Builder #

struct Builder {
pub:
	compiled_dir string
	module_path  string
mut:
	pref          &pref.Preferences
	checker       checker.Checker
	global_scope  &ast.Scope
	out_name_c    string
	out_name_js   string
	max_nr_errors int = 100
pub mut:
	module_search_paths []string
	parsed_files        []ast.File
	cached_msvc         MsvcResult
	table               &table.Table
	timers              &util.Timers = util.new_timers(false)
	ccoptions           CcompilerOptions
}

fn (Builder) build_c #

fn (mut b Builder) build_c(v_files []string, out_file string)

fn (Builder) build_js #

fn (mut b Builder) build_js(v_files []string, out_file string)

fn (Builder) build_x64 #

fn (mut b Builder) build_x64(v_files []string, out_file string)

fn (Builder) cc_msvc #

fn (mut v Builder) cc_msvc()

fn (Builder) compile_c #

fn (mut b Builder) compile_c()

fn (Builder) compile_js #

fn (mut b Builder) compile_js()

fn (Builder) compile_x64 #

fn (mut b Builder) compile_x64()

fn (Builder) find_module_path #

fn (b &Builder) find_module_path(mod string, fpath string) ?string

TODO: try to merge this & util.module functions to create a reliable multi use function. see comments in util/module.v

fn (Builder) gen_c #

fn (mut b Builder) gen_c(v_files []string) string

fn (Builder) gen_js #

fn (mut b Builder) gen_js(v_files []string) string

fn (Builder) generic_struct_insts_to_concrete #

fn (b &Builder) generic_struct_insts_to_concrete()

NOTE: Think about generic struct implementation this might not be the best strategy. - joe-c generic struct instantiations to concrete types

fn (Builder) get_builtin_files #

fn (v Builder) get_builtin_files() []string

fn (Builder) get_user_files #

fn (v &Builder) get_user_files() []string

fn (Builder) import_graph #

fn (b &Builder) import_graph() &depgraph.DepGraph

graph of all imported modules

fn (Builder) info #

fn (b Builder) info(s string)

fn (Builder) log #

fn (b Builder) log(s string)

fn (Builder) parse_imports #

fn (mut b Builder) parse_imports()

parse all deps from already parsed files

fn (Builder) resolve_deps #

fn (mut b Builder) resolve_deps()

fn (Builder) timing_measure #

fn (mut b Builder) timing_measure(label string)

fn (Builder) timing_start #

fn (mut b Builder) timing_start(label string)

fn (Builder) v_files_from_dir #

fn (b Builder) v_files_from_dir(dir string) []string