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

Unified Diff: pkg/compiler/lib/src/tree/prettyprint.dart

Issue 1325843003: Add optional message to assert in Dart2js. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Reintroduce assertHelper for asserts without messages. Created 5 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: pkg/compiler/lib/src/tree/prettyprint.dart
diff --git a/pkg/compiler/lib/src/tree/prettyprint.dart b/pkg/compiler/lib/src/tree/prettyprint.dart
index ab4c87c8883f6aa05b0e255fd2b3c96e1f1fff35..5096e7407b09d7c378c39195f79de05a5b4048bd 100644
--- a/pkg/compiler/lib/src/tree/prettyprint.dart
+++ b/pkg/compiler/lib/src/tree/prettyprint.dart
@@ -39,6 +39,10 @@ class PrettyPrinter extends Indentation with Tagging<Node> implements Visitor {
closeNode();
}
+ visitAssert(Assert node) {
+ visitNodeWithChildren(node, "Assert");
+ }
+
visitAsyncModifier(AsyncModifier node) {
openAndCloseNode(node, "AsyncModifier",
{'asyncToken': node.asyncToken,

Powered by Google App Engine
This is Rietveld 408576698