mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vdoc: fix for v doc log
This commit is contained in:
@@ -806,6 +806,9 @@ pub fn (table &Table) type_to_str(t Type) string {
|
|||||||
res = sym.kind.str()
|
res = sym.kind.str()
|
||||||
}
|
}
|
||||||
.array {
|
.array {
|
||||||
|
if t == array_type {
|
||||||
|
return 'array'
|
||||||
|
}
|
||||||
info := sym.info as Array
|
info := sym.info as Array
|
||||||
elem_str := table.type_to_str(info.elem_type)
|
elem_str := table.type_to_str(info.elem_type)
|
||||||
res = '[]$elem_str'
|
res = '[]$elem_str'
|
||||||
@@ -833,6 +836,9 @@ pub fn (table &Table) type_to_str(t Type) string {
|
|||||||
// do nothing, source_name is sufficient
|
// do nothing, source_name is sufficient
|
||||||
}
|
}
|
||||||
.map {
|
.map {
|
||||||
|
if int(t) == map_type_idx {
|
||||||
|
return 'map'
|
||||||
|
}
|
||||||
info := sym.info as Map
|
info := sym.info as Map
|
||||||
key_str := table.type_to_str(info.key_type)
|
key_str := table.type_to_str(info.key_type)
|
||||||
val_str := table.type_to_str(info.value_type)
|
val_str := table.type_to_str(info.value_type)
|
||||||
|
Reference in New Issue
Block a user