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

Unified Diff: pkg/compiler/lib/src/resolution/semantic_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: pkg/compiler/lib/src/resolution/semantic_visitor.dart
diff --git a/pkg/compiler/lib/src/resolution/semantic_visitor.dart b/pkg/compiler/lib/src/resolution/semantic_visitor.dart
index f87664bc1e9945b6ba0c9ff5dd27be7675d25673..bb9910184268ff74099b49cc6083270d492715f2 100644
--- a/pkg/compiler/lib/src/resolution/semantic_visitor.dart
+++ b/pkg/compiler/lib/src/resolution/semantic_visitor.dart
@@ -1300,6 +1300,32 @@ abstract class SemanticSendVisitor<R, A> {
Node rhs,
A arg);
+ /// Call to `assert` with [expression] as the condition.
+ ///
+ /// For instance:
+ ///
+ /// m() { assert(expression); }
+ ///
+ R visitAssert(
+ Send node,
+ Node expression,
+ A arg);
+
+ /// Call to `assert` with the wrong number of [arguments].
+ ///
+ /// For instance:
+ ///
+ /// m() { assert(); }
+ ///
+ /// or
+ ///
+ /// m() { assert(expression1, expression2); }
+ ///
+ R errorInvalidAssert(
+ Send node,
+ NodeList arguments,
+ A arg);
+
/// Binary expression `left operator right` where [operator] is a user
/// definable operator. Binary expressions using operator `==` are handled
/// by [visitEquals] and index operations `a[b]` are handled by [visitIndex].
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution_result.dart ('k') | pkg/compiler/lib/src/resolution/semantic_visitor_mixins.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698