mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
Revert Attributes::Attrs back to return an attr_list and mark it deprecated
This commit is contained in:
parent
e1338cc379
commit
5b8aaf6497
4 changed files with 36 additions and 13 deletions
|
@ -2076,7 +2076,7 @@ bool AssignExpr::TypeCheck(const IntrusivePtr<Attributes>& attrs)
|
|||
std::unique_ptr<std::vector<IntrusivePtr<Attr>>> attr_copy;
|
||||
|
||||
if ( attrs )
|
||||
attr_copy = std::make_unique<std::vector<IntrusivePtr<Attr>>>(attrs->Attrs());
|
||||
attr_copy = std::make_unique<std::vector<IntrusivePtr<Attr>>>(attrs->GetAttrs());
|
||||
|
||||
bool empty_list_assignment = (op2->AsListExpr()->Exprs().empty());
|
||||
|
||||
|
@ -2172,7 +2172,7 @@ bool AssignExpr::TypeCheck(const IntrusivePtr<Attributes>& attrs)
|
|||
|
||||
if ( sce->GetAttrs() )
|
||||
{
|
||||
const auto& a = sce->GetAttrs()->Attrs();
|
||||
const auto& a = sce->GetAttrs()->GetAttrs();
|
||||
attr_copy = std::make_unique<std::vector<IntrusivePtr<Attr>>>(a);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue