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:
@ -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}__', '')
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user