1
0
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:
Alexander Medvednikov
2021-02-05 08:05:13 +01:00
parent 119dfc0bb0
commit 1084b43ffb
13 changed files with 230 additions and 25 deletions

View File

@@ -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
}