mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
additional converters and accessors for Expr subclasses
This commit is contained in:
parent
64eb229880
commit
9b549e4034
3 changed files with 48 additions and 0 deletions
|
@ -159,6 +159,12 @@ EventExprPtr Expr::AsEventExprPtr()
|
|||
return {NewRef{}, (EventExpr*) this};
|
||||
}
|
||||
|
||||
const RefExpr* Expr::AsRefExpr() const
|
||||
{
|
||||
CHECK_TAG(tag, EXPR_REF, "ExprVal::AsRefExpr", expr_name)
|
||||
return (const RefExpr*) this;
|
||||
}
|
||||
|
||||
RefExprPtr Expr::AsRefExprPtr()
|
||||
{
|
||||
CHECK_TAG(tag, EXPR_REF, "ExprVal::AsRefExpr", expr_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue