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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.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/DartToSourceVisitor.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java b/compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java
index 5c701279503e99c2e9036c5b305699c1c4a24c57..6cc122645ffec60754adc98b8ee86092ec9a7d76 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java
@@ -338,15 +338,6 @@ public class DartToSourceVisitor extends ASTVisitor<Void> {
}
@Override
- public Void visitAssertion(DartAssertion x) {
- p("assert(");
- accept(x.getExpression());
- p(");");
- nl();
- return null;
- }
-
- @Override
public Void visitIfStatement(DartIfStatement x) {
p("if (");
accept(x.getCondition());

Powered by Google App Engine
This is Rietveld 408576698