mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
all: remove it
smartcast and replace with original variable name (#5764)
This commit is contained in:
parent
9511b7d0a1
commit
c5dc1a33b6
19 changed files with 210 additions and 94 deletions
|
@ -98,9 +98,9 @@ fn (app App) gen_api_for_module_in_os(mod_name, os_name string) string {
|
|||
for f in b.parsed_files {
|
||||
for s in f.stmts {
|
||||
if s is ast.FnDecl {
|
||||
if it.is_pub {
|
||||
fn_signature := it.stringify(b.table)
|
||||
fn_mod := it.modname()
|
||||
if s.is_pub {
|
||||
fn_signature := s.stringify(b.table)
|
||||
fn_mod := s.modname()
|
||||
if fn_mod == mod_name {
|
||||
fline := '${fn_mod}: $fn_signature'
|
||||
res << fline
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue