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

Unified Diff: compiler/java/com/google/dart/compiler/ast/ASTVisitor.java

Issue 10516006: Issue 3268. Support for replacing 'assert' statement with 'assert' function (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes for review comments Created 8 years, 6 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
Index: compiler/java/com/google/dart/compiler/ast/ASTVisitor.java
diff --git a/compiler/java/com/google/dart/compiler/ast/ASTVisitor.java b/compiler/java/com/google/dart/compiler/ast/ASTVisitor.java
index 774c2e4c084f0cf096a31ed15e72e0c5752bdb29..eac2a2e3e8c0328e5bf2cb7389bb6baad966cbc1 100644
--- a/compiler/java/com/google/dart/compiler/ast/ASTVisitor.java
+++ b/compiler/java/com/google/dart/compiler/ast/ASTVisitor.java
@@ -85,10 +85,6 @@ public class ASTVisitor<R> {
return visitTypedLiteral(node);
}
- public R visitAssertion(DartAssertion node) {
- return visitStatement(node);
- }
-
public R visitBinaryExpression(DartBinaryExpression node) {
return visitExpression(node);
}
@@ -96,6 +92,10 @@ public class ASTVisitor<R> {
public R visitBlock(DartBlock node) {
return visitStatement(node);
}
+
+ public R visitReturnBlock(DartReturnBlock node) {
+ return visitBlock(node);
+ }
public R visitBooleanLiteral(DartBooleanLiteral node) {
return visitLiteral(node);

Powered by Google App Engine
This is Rietveld 408576698