mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
tracking of expressions used to define/redef variables
This commit is contained in:
parent
1f15f53f4b
commit
cf79c05e3a
3 changed files with 21 additions and 1 deletions
|
@ -285,6 +285,11 @@ const AttrPtr& ID::GetAttr(AttrTag t) const
|
|||
return attrs ? attrs->Find(t) : Attr::nil;
|
||||
}
|
||||
|
||||
void ID::AddInitExpr(ExprPtr init_expr)
|
||||
{
|
||||
init_exprs.emplace_back(std::move(init_expr));
|
||||
}
|
||||
|
||||
bool ID::IsDeprecated() const
|
||||
{
|
||||
return GetAttr(ATTR_DEPRECATED) != nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue