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:

committed by
Alexander Medvednikov

parent
cd8b0d04bb
commit
eef73eea22
@ -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 {
|
||||
|
Reference in New Issue
Block a user