mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
tracking of optimization information associated with expressions
This commit is contained in:
parent
3ac725f44b
commit
074b18f3e8
3 changed files with 36 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
|||
#include "zeek/module_util.h"
|
||||
#include "zeek/DebugLogger.h"
|
||||
#include "zeek/Hash.h"
|
||||
#include "zeek/script_opt/ExprOptInfo.h"
|
||||
|
||||
#include "zeek/broker/Data.h"
|
||||
|
||||
|
@ -79,6 +80,12 @@ const char* expr_name(BroExprTag t)
|
|||
Expr::Expr(BroExprTag arg_tag) : tag(arg_tag), paren(false), type(nullptr)
|
||||
{
|
||||
SetLocationInfo(&start_location, &end_location);
|
||||
opt_info = new ExprOptInfo();
|
||||
}
|
||||
|
||||
Expr::~Expr()
|
||||
{
|
||||
delete opt_info;
|
||||
}
|
||||
|
||||
const ListExpr* Expr::AsListExpr() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue