mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
fix for analyzing non-reduced ASTs
This commit is contained in:
parent
55c5ce06d1
commit
f6a119254f
2 changed files with 6 additions and 1 deletions
|
@ -67,6 +67,12 @@ const AddToExpr* Expr::AsAddToExpr() const
|
||||||
return (const AddToExpr*) this;
|
return (const AddToExpr*) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const InlineExpr* Expr::AsInlineExpr() const
|
||||||
|
{
|
||||||
|
CHECK_TAG(tag, EXPR_INLINE, "ExprVal::AsInlineExpr", expr_name)
|
||||||
|
return (const InlineExpr*) this;
|
||||||
|
}
|
||||||
|
|
||||||
ExprPtr Expr::GetOp1() const { return nullptr; }
|
ExprPtr Expr::GetOp1() const { return nullptr; }
|
||||||
ExprPtr Expr::GetOp2() const { return nullptr; }
|
ExprPtr Expr::GetOp2() const { return nullptr; }
|
||||||
ExprPtr Expr::GetOp3() const { return nullptr; }
|
ExprPtr Expr::GetOp3() const { return nullptr; }
|
||||||
|
|
|
@ -1092,7 +1092,6 @@ TraversalCode RD_Decorate::PreExpr(const Expr* e)
|
||||||
|
|
||||||
case EXPR_INLINE:
|
case EXPR_INLINE:
|
||||||
{
|
{
|
||||||
ASSERT(0);
|
|
||||||
auto inl = e->AsInlineExpr();
|
auto inl = e->AsInlineExpr();
|
||||||
mgr.SetPreFromPre(inl->Args().get(), inl);
|
mgr.SetPreFromPre(inl->Args().get(), inl);
|
||||||
mgr.SetPreFromPre(inl->Body().get(), inl);
|
mgr.SetPreFromPre(inl->Body().get(), inl);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue