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

Unified Diff: pkg/analyzer2dart/lib/src/semantic_visitor.dart

Issue 661593004: Support local variables in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove blank lines. Created 6 years, 2 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: pkg/analyzer2dart/lib/src/semantic_visitor.dart
diff --git a/pkg/analyzer2dart/lib/src/semantic_visitor.dart b/pkg/analyzer2dart/lib/src/semantic_visitor.dart
index 80edf47e3a80edef408c86c3c6c5e8f53ddcea6c..0cc203c61280bd252a5ac87bc2adc56bf37039f7 100644
--- a/pkg/analyzer2dart/lib/src/semantic_visitor.dart
+++ b/pkg/analyzer2dart/lib/src/semantic_visitor.dart
@@ -31,7 +31,7 @@ abstract class SemanticVisitor<R> extends RecursiveAstVisitor<R> {
}
if (!condition) {
reportMessage(node, message);
- throw new AssertionError();
+ return false;
floitsch 2014/10/16 12:23:59 If that's not just debugging code, I would do it i
Johnni Winther 2014/10/16 13:01:26 It is only for debugging.
}
return true;
}

Powered by Google App Engine
This is Rietveld 408576698