mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: ast walker for marking unused fns
This commit is contained in:
@@ -329,6 +329,7 @@ pub:
|
||||
generic_params []GenericParam
|
||||
is_direct_arr bool // direct array access
|
||||
attrs []table.Attr
|
||||
skip_gen bool // this function doesn't need to be generated (for example [if foo])
|
||||
pub mut:
|
||||
stmts []Stmt
|
||||
return_type table.Type
|
||||
@@ -1518,3 +1519,9 @@ pub fn ex2fe(x Expr) table.FExpr {
|
||||
unsafe { C.memcpy(&res, &x, sizeof(table.FExpr)) }
|
||||
return res
|
||||
}
|
||||
|
||||
// experimental ast.Table
|
||||
pub struct Table {
|
||||
// pub mut:
|
||||
// main_fn_decl_node FnDecl
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user