vfmt: do not replace module aliases in fn param and return types (#7472)

This commit is contained in:
Lukas Neubert 2020-12-22 21:38:13 +01:00 committed by GitHub
parent 6aadc828b1
commit c4aae2b55f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 44 additions and 16 deletions

View file

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