Skip to content

v2.markused

fn decl_key #

fn decl_key(module_name string, decl ast.FnDecl, env &types.Environment) string

decl_key computes the stable key used by mark_used for a function declaration.

fn is_builtin_array_file #

fn is_builtin_array_file(path string) bool

fn is_builtin_map_file #

fn is_builtin_map_file(path string) bool

fn is_builtin_runtime_keep_file #

fn is_builtin_runtime_keep_file(path string) bool

fn is_builtin_string_file #

fn is_builtin_string_file(path string) bool

fn mark_used #

fn mark_used(files []ast.File, env &types.Environment) map[string]bool

mark_used walks reachable function/method bodies and returns declaration keys for the functions that are used at least once.

fn mark_used_with_options #

fn mark_used_with_options(files []ast.File, env &types.Environment, opts MarkUsedOptions) map[string]bool

fn should_always_emit_for_markused #

fn should_always_emit_for_markused(path string) bool

fn should_keep_builtin_array_decl #

fn should_keep_builtin_array_decl(decl ast.FnDecl) bool

fn should_keep_builtin_map_decl #

fn should_keep_builtin_map_decl(decl ast.FnDecl) bool

fn should_keep_builtin_string_decl #

fn should_keep_builtin_string_decl(decl ast.FnDecl) bool

struct MarkUsedOptions #

struct MarkUsedOptions {
pub:
	minimal_runtime_roots bool
}