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 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.