Chromium Code Reviews| Index: runtime/vm/ast.h |
| =================================================================== |
| --- runtime/vm/ast.h (revision 8157) |
| +++ runtime/vm/ast.h (working copy) |
| @@ -658,6 +658,15 @@ |
| AstNode* true_expr() const { return true_expr_; } |
| AstNode* false_expr() const { return false_expr_; } |
| + void set_true_expr(AstNode* true_expr) { |
| + ASSERT(true_expr_ != NULL); |
|
srdjan
2012/05/31 15:39:11
Why are these asserts necessary? Dop you want to c
regis
2012/05/31 15:56:24
Yes, of course. Copy and paste error. Thanks!
|
| + true_expr_ = true_expr; |
| + } |
| + void set_false_expr(AstNode* false_expr) { |
| + ASSERT(false_expr_ != NULL); |
| + false_expr_ = false_expr; |
| + } |
| + |
| virtual void VisitChildren(AstNodeVisitor* visitor) const { |
| condition()->Visit(visitor); |
| true_expr()->Visit(visitor); |