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

Unified Diff: dart/lib/compiler/implementation/tree/nodes.dart

Issue 10542073: RFC: Resolution based tree-shaking. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Minor tweaks for the unit tests Created 8 years, 6 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/tree/nodes.dart
diff --git a/dart/lib/compiler/implementation/tree/nodes.dart b/dart/lib/compiler/implementation/tree/nodes.dart
index c52b607b36d5c7ba8f3704a09a9c6e0517a42362..3444c1f8e6b046fde5f1c0ae7a1998d0d7792187 100644
--- a/dart/lib/compiler/implementation/tree/nodes.dart
+++ b/dart/lib/compiler/implementation/tree/nodes.dart
@@ -264,7 +264,7 @@ class Send extends Expression {
if (argumentsNode !== null) argumentsNode.accept(visitor);
}
- int argumentCount() => argumentsNode.length();
+ int argumentCount() => (argumentsNode === null) ? -1 : argumentsNode.length();
bool get isSuperCall() {
return receiver !== null &&

Powered by Google App Engine
This is Rietveld 408576698