1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools: new tool to extracts function names declared in V files

This commit is contained in:
Delyan Angelov
2019-10-21 14:14:28 +03:00
committed by Alexander Medvednikov
parent cd8b0d04bb
commit eef73eea22
12 changed files with 184 additions and 40 deletions

View File

@ -12,8 +12,10 @@ const (
MaxLocalVars = 50
)
struct Fn {
// addr int
pub:
mut:
name string
mod string
@ -49,6 +51,11 @@ mut:
done bool
}
const (
EmptyFn = Fn{}
MainFn = Fn{ name: 'main' }
)
fn (a []TypeInst) str() string {
mut r := []string
for t in a {