mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Change Scope/Func inits from id_list* to vector<IntrusivePtr<ID>>
This commit is contained in:
parent
46e23b49fb
commit
2cee468eac
8 changed files with 48 additions and 91 deletions
|
@ -393,20 +393,19 @@ protected:
|
|||
|
||||
class InitStmt final : public Stmt {
|
||||
public:
|
||||
explicit InitStmt(id_list* arg_inits);
|
||||
|
||||
~InitStmt() override;
|
||||
explicit InitStmt(std::vector<IntrusivePtr<ID>> arg_inits);
|
||||
|
||||
IntrusivePtr<Val> Exec(Frame* f, stmt_flow_type& flow) const override;
|
||||
|
||||
const id_list* Inits() const { return inits; }
|
||||
const std::vector<IntrusivePtr<ID>>& Inits() const
|
||||
{ return inits; }
|
||||
|
||||
void Describe(ODesc* d) const override;
|
||||
|
||||
TraversalCode Traverse(TraversalCallback* cb) const override;
|
||||
|
||||
protected:
|
||||
id_list* inits;
|
||||
std::vector<IntrusivePtr<ID>> inits;
|
||||
};
|
||||
|
||||
class NullStmt final : public Stmt {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue