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

vfmt: strip current_module. in fn args more robustly

This commit is contained in:
Delyan Angelov
2020-07-11 16:09:12 +03:00
parent b55f84c0a8
commit 26768e8514
7 changed files with 48 additions and 36 deletions

View File

@ -99,7 +99,7 @@ fn (app App) gen_api_for_module_in_os(mod_name, os_name string) string {
for s in f.stmts {
if s is ast.FnDecl {
if s.is_pub {
fn_signature := s.stringify(b.table)
fn_signature := s.stringify(b.table, mod_name)
fn_mod := s.modname()
if fn_mod == mod_name {
fline := '${fn_mod}: $fn_signature'