mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Implementing a VectorCoerceExpr.
Turns out we didn't have that yet. I don't remember who implemented vectors originally, but he does owe us all round at Jupiter ...
This commit is contained in:
parent
b3b5a73113
commit
5a6311d360
7 changed files with 115 additions and 6 deletions
|
@ -1290,6 +1290,11 @@ int VectorType::MatchesIndex(ListExpr*& index) const
|
|||
MATCHES_INDEX_SCALAR : DOES_NOT_MATCH_INDEX;
|
||||
}
|
||||
|
||||
bool VectorType::IsUnspecifiedVector() const
|
||||
{
|
||||
return yield_type->Tag() == TYPE_ANY;
|
||||
}
|
||||
|
||||
IMPLEMENT_SERIAL(VectorType, SER_VECTOR_TYPE);
|
||||
|
||||
bool VectorType::DoSerialize(SerialInfo* info) const
|
||||
|
@ -1651,6 +1656,7 @@ BroType* merge_types(const BroType* t1, const BroType* t2)
|
|||
case TYPE_ADDR:
|
||||
case TYPE_NET:
|
||||
case TYPE_SUBNET:
|
||||
case TYPE_BOOL:
|
||||
case TYPE_ANY:
|
||||
case TYPE_ERROR:
|
||||
return base_type(tg1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue