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

Unified Diff: dart/lib/compiler/implementation/types/concrete_types_inferrer.dart

Issue 11184046: Clean up leg.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased on CL 11187067 Created 8 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: dart/lib/compiler/implementation/types/concrete_types_inferrer.dart
diff --git a/dart/lib/compiler/implementation/types/concrete_types_inferrer.dart b/dart/lib/compiler/implementation/types/concrete_types_inferrer.dart
index 82387de2f3080f3bc99535debd4e030811a9b57f..780241d3355d694c274507156a7a36e253a5383b 100644
--- a/dart/lib/compiler/implementation/types/concrete_types_inferrer.dart
+++ b/dart/lib/compiler/implementation/types/concrete_types_inferrer.dart
@@ -764,7 +764,6 @@ class ConcreteTypesInferrer {
* Fail with a message and abort.
*/
void fail(node, [reason]) {
- throw "fail: ${node.toDebugString()}";
String message = 'cannot infer types';
if (reason != null) {
message = '$message: $reason';
@@ -781,7 +780,7 @@ class ArgumentsTypes {
final List<ConcreteType> positional;
final Map<Identifier, ConcreteType> named;
ArgumentsTypes(this.positional, this.named);
- int get length() => positional.length + named.length;
+ int get length => positional.length + named.length;
toString() => "{ positional = $positional, named = $named }";
}
« no previous file with comments | « dart/lib/compiler/implementation/string_validator.dart ('k') | dart/lib/compiler/implementation/types/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698