Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(759)

Unified Diff: runtime/vm/ast.h

Issue 10446102: Insert closure calls in conditional expression of assert (issue 1584). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.h
===================================================================
--- runtime/vm/ast.h (revision 8163)
+++ 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);
+ 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);
« no previous file with comments | « no previous file | runtime/vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698