mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Include yield of vectors in Broxygen's type descriptions.
BIT-1217 #close
This commit is contained in:
parent
a7746afa0a
commit
3cea6ab1eb
6 changed files with 70 additions and 1 deletions
10
src/Type.cc
10
src/Type.cc
|
@ -1691,6 +1691,16 @@ void VectorType::Describe(ODesc* d) const
|
|||
yield_type->Describe(d);
|
||||
}
|
||||
|
||||
void VectorType::DescribeReST(ODesc* d, bool roles_only) const
|
||||
{
|
||||
d->Add(fmt(":bro:type:`%s` of ", type_name(Tag())));
|
||||
|
||||
if ( yield_type->GetName().empty() )
|
||||
yield_type->DescribeReST(d, roles_only);
|
||||
else
|
||||
d->Add(fmt(":bro:type:`%s`", yield_type->GetName().c_str()));
|
||||
}
|
||||
|
||||
BroType* base_type_no_ref(TypeTag tag)
|
||||
{
|
||||
static BroType* base_types[NUM_TYPES];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue