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

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

Issue 10949015: Issue 5052. Analyzer should treat assert as a keyword (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 3c0637c58f813331a96f6691491d1285ab41c8b2..6bedf8ccf5d8ceaf3400a87ff878f81059d2fff2 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java
@@ -364,6 +364,14 @@ public class DartToSourceVisitor extends ASTVisitor<Void> {
p("]");
}
}
+
+ @Override
+ public Void visitAssertStatement(DartAssertStatement x) {
+ p("assert(");
+ accept(x.getCondition());
+ p(");");
+ return null;
+ }
@Override
public Void visitBlock(DartBlock x) {

Powered by Google App Engine
This is Rietveld 408576698