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

Unified Diff: tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart

Issue 1346093003: Revert "Add optional message to assert in Dart2js - continued" (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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: tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart
diff --git a/tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart b/tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart
index 0125b4303dd8c5389e54337e11a4d289866543c0..3aa941e21cf8af66b1dd55e145d944e96d840d8b 100644
--- a/tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart
+++ b/tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart
@@ -20,6 +20,24 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
}
@override
+ visitAssert(
+ Send node,
+ Node expression,
+ arg) {
+ visits.add(new Visit(VisitKind.VISIT_ASSERT, expression: expression));
+ super.visitAssert(node, expression, arg);
+ }
+
+ @override
+ errorInvalidAssert(
+ Send node,
+ NodeList arguments,
+ arg) {
+ visits.add(new Visit(VisitKind.ERROR_INVALID_ASSERT, arguments: arguments));
+ super.errorInvalidAssert(node, arguments, arg);
+ }
+
+ @override
errorInvalidCompound(
Send node,
ErroneousElement error,
« no previous file with comments | « tests/compiler/dart2js/semantic_visitor_test_send_data.dart ('k') | tests/compiler/dart2js/type_inference7_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698