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

vdoc: prevent leaking to the docs the pure_v_but_overriden_by_ prefix

This commit is contained in:
Delyan Angelov 2021-10-14 11:47:50 +03:00
parent 05885059bd
commit 4c2cb1b6df
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -421,7 +421,9 @@ fn (mut p Parser) fn_decl() ast.FnDecl {
if existing.name != '' { if existing.name != '' {
if file_mode == .v && existing.file_mode != .v { if file_mode == .v && existing.file_mode != .v {
// a definition made in a .c.v file, should have a priority over a .v file definition of the same function // a definition made in a .c.v file, should have a priority over a .v file definition of the same function
if !p.pref.is_fmt {
name = p.prepend_mod('pure_v_but_overriden_by_${existing.file_mode}_$short_fn_name') name = p.prepend_mod('pure_v_but_overriden_by_${existing.file_mode}_$short_fn_name')
}
} else { } else {
p.table.redefined_fns << name p.table.redefined_fns << name
} }