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

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: All tests pass 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 039b69833d67f55b5fcf9ddb0a79a0c48405dd1e..419320bdb5c0800d8e5b13bd078ccfb8a6360821 100644
--- a/dart/lib/compiler/implementation/tree/nodes.dart
+++ b/dart/lib/compiler/implementation/tree/nodes.dart
@@ -256,7 +256,10 @@ class Send extends Expression {
if (argumentsNode !== null) argumentsNode.accept(visitor);
}
- int argumentCount() => argumentsNode.length();
+ int argumentCount() {
+ if (argumentsNode === null) return -1;
kasperl 2012/06/12 05:50:12 return (argumentsNode === null) ? -1 : argumentsNo
ahe 2012/06/12 10:56:11 Done.
+ return argumentsNode.length();
+ }
bool get isSuperCall() {
return receiver !== null &&

Powered by Google App Engine
This is Rietveld 408576698