Include yield of vectors in Broxygen's type descriptions.

BIT-1217 #close
This commit is contained in:
Jon Siwek 2014-07-10 19:17:37 -05:00
parent a7746afa0a
commit 3cea6ab1eb
6 changed files with 70 additions and 1 deletions

View file

@ -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];