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

ast: clean up stringify_fn_decl() and stringify_anon_decl(), make them methods on ast.Table (#19053)

This commit is contained in:
yuyi
2023-08-04 00:50:37 +08:00
committed by GitHub
parent 6a4bfef2c5
commit 453137384e
6 changed files with 29 additions and 30 deletions

View File

@@ -103,7 +103,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_fn_decl(b.table, mod_name, map[string]string{})
fn_signature := b.table.stringify_fn_decl(&s, mod_name, map[string]string{})
fn_mod := s.modname()
if fn_mod == mod_name {
fline := '${fn_mod}: ${fn_signature}'