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

Unified Diff: pkg/compiler/lib/src/inferrer/simple_types_inferrer.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/inferrer/simple_types_inferrer.dart
diff --git a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
index fccfb8042bee4f2fb745432b3d309880a72bc3d1..c87947a5675ecc39248966cb4f9a2492aed8e7b2 100644
--- a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
@@ -1572,20 +1572,6 @@ class SimpleTypeInferrerVisitor<T>
}
@override
- T handleAssert(ast.Send node, ast.Node expression) {
- js.JavaScriptBackend backend = compiler.backend;
- Element element = backend.assertMethod;
- ArgumentsTypes<T> arguments =
- new ArgumentsTypes<T>(<T>[expression.accept(this)], null);
- return handleStaticSend(
- node,
- new Selector.fromElement(element),
- null,
- element,
- arguments);
- }
-
- @override
T handleTypeLiteralInvoke(ast.NodeList arguments) {
// This is reached when users forget to put a `new` in front of a type
// literal. The emitter will generate an actual call (even though it is

Powered by Google App Engine
This is Rietveld 408576698