mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
convert scopes to be managed using IntrusivePtr's
This commit is contained in:
parent
f2f041b63b
commit
efd03d41f8
16 changed files with 41 additions and 48 deletions
|
@ -27,6 +27,7 @@ class Frame;
|
|||
class Scope;
|
||||
struct function_ingredients;
|
||||
using IDPtr = IntrusivePtr<ID>;
|
||||
using ScopePtr = IntrusivePtr<Scope>;
|
||||
|
||||
enum BroExprTag : int {
|
||||
EXPR_ANY = -1,
|
||||
|
@ -1341,7 +1342,7 @@ public:
|
|||
ValPtr Eval(Frame* f) const override;
|
||||
TraversalCode Traverse(TraversalCallback* cb) const override;
|
||||
|
||||
Scope* GetScope() const;
|
||||
ScopePtr GetScope() const;
|
||||
|
||||
// Optimization-related:
|
||||
ExprPtr Duplicate() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue