Module v.markused stdlib

v.markused
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
3
Imported by:
1
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imports

Imported by

Aliases

This section is empty.

Constants

This section is empty.

Sum types

This section is empty.

Functions

#fn mark_used

fn mark_used(mut table &v.ast.Table, pref_ &v.pref.Preferences, ast_files []&v.ast.File)

mark_used walks the AST, starting at main() and marks all used fns transitively

Structs

#struct Walker

pub struct Walker {
pub mut:
	table        &ast.Table = unsafe { nil }
	used_fns     map[string]bool // used_fns['println'] == true
	used_consts  map[string]bool // used_consts['os.args'] == true
	used_globals map[string]bool
	used_structs map[string]bool
	n_asserts    int
	pref         &pref.Preferences = unsafe { nil }
mut:
	files       []&ast.File
	all_fns     map[string]ast.FnDecl
	all_consts  map[string]ast.ConstField
	all_globals map[string]ast.GlobalField
}

#fn (&Walker) mark_fn_as_used

fn (mut w &Walker) mark_fn_as_used(fkey string)

#fn (&Walker) mark_const_as_used

fn (mut w &Walker) mark_const_as_used(ckey string)

#fn (&Walker) mark_global_as_used

fn (mut w &Walker) mark_global_as_used(ckey string)

#fn (&Walker) mark_root_fns

fn (mut w &Walker) mark_root_fns(all_fn_root_names []string)

#fn (&Walker) mark_exported_fns

fn (mut w &Walker) mark_exported_fns()

#fn (&Walker) mark_markused_fns

fn (mut w &Walker) mark_markused_fns()

#fn (&Walker) mark_markused_consts

fn (mut w &Walker) mark_markused_consts()

#fn (&Walker) mark_markused_globals

fn (mut w &Walker) mark_markused_globals()

#fn (&Walker) stmt

fn (mut w &Walker) stmt(node_ v.ast.Stmt)

#fn (&Walker) asm_io

fn (mut w &Walker) asm_io(ios []v.ast.AsmIO)

#fn (&Walker) defer_stmts

fn (mut w &Walker) defer_stmts(stmts []v.ast.DeferStmt)

#fn (&Walker) stmts

fn (mut w &Walker) stmts(stmts []v.ast.Stmt)

#fn (&Walker) exprs

fn (mut w &Walker) exprs(exprs []v.ast.Expr)

#fn (&Walker) expr

fn (mut w &Walker) expr(node_ v.ast.Expr)

#fn (&Walker) a_struct_info

fn (mut w &Walker) a_struct_info(sname string, info v.ast.Struct)

#fn (&Walker) fn_decl

fn (mut w &Walker) fn_decl(mut node &v.ast.FnDecl)

#fn (&Walker) call_expr

fn (mut w &Walker) call_expr(mut node &v.ast.CallExpr)

#fn (&Walker) fn_by_name

fn (mut w &Walker) fn_by_name(fn_name string)

#fn (&Walker) struct_fields

fn (mut w &Walker) struct_fields(sfields []v.ast.StructField)

#fn (&Walker) const_fields

fn (mut w &Walker) const_fields(cfields []v.ast.ConstField)

#fn (&Walker) or_block

fn (mut w &Walker) or_block(node v.ast.OrExpr)

Interfaces

This section is empty.

Enums

This section is empty.