mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
accessors and converters for Stmt subclasses
This commit is contained in:
parent
ca33a15626
commit
c380a2a61a
3 changed files with 38 additions and 5 deletions
|
@ -24,13 +24,17 @@ using ValPtr = IntrusivePtr<Val>;
|
|||
|
||||
namespace zeek::detail {
|
||||
|
||||
class CatchReturnStmt;
|
||||
class ExprStmt;
|
||||
class ForStmt;
|
||||
class IfStmt;
|
||||
class InitStmt;
|
||||
class PrintStmt;
|
||||
class ReturnStmt;
|
||||
class StmtList;
|
||||
class SwitchStmt;
|
||||
class WhenStmt;
|
||||
class WhileStmt;
|
||||
|
||||
class EventExpr;
|
||||
class ListExpr;
|
||||
|
@ -69,8 +73,12 @@ public:
|
|||
const ForStmt* AsForStmt() const;
|
||||
|
||||
const ExprStmt* AsExprStmt() const;
|
||||
const PrintStmt* AsPrintStmt() const;
|
||||
const InitStmt* AsInitStmt() const;
|
||||
const CatchReturnStmt* AsCatchReturnStmt() const;
|
||||
const ReturnStmt* AsReturnStmt() const;
|
||||
const IfStmt* AsIfStmt() const;
|
||||
const WhileStmt* AsWhileStmt() const;
|
||||
const WhenStmt* AsWhenStmt() const;
|
||||
const SwitchStmt* AsSwitchStmt() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue