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

new vh generation + simpler match statement

This commit is contained in:
Alexander Medvednikov
2019-10-21 14:21:30 +03:00
parent 14c273f273
commit 4574039e4d
8 changed files with 121 additions and 29 deletions

View File

@ -1425,3 +1425,12 @@ fn (fns []Fn) contains(f Fn) bool {
}
return false
}
pub fn (f Fn) v_fn_module() string {
return f.mod
}
pub fn (f Fn) v_fn_name() string {
return f.name.replace('${f.mod}__', '')
}