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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartInvocation.java

Issue 9600049: Use NodeList where possible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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: compiler/java/com/google/dart/compiler/ast/DartInvocation.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartInvocation.java b/compiler/java/com/google/dart/compiler/ast/DartInvocation.java
index 213ae92130daf9b64bb07bc81ab868ba9bf67f28..ecc352159e53cb3a0b01f555d5046084641c67c8 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartInvocation.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartInvocation.java
@@ -34,11 +34,11 @@ import java.util.List;
*/
public abstract class DartInvocation extends DartExpression implements ElementReference {
- private List<DartExpression> args;
+ private final NodeList<DartExpression> args = NodeList.create(this);
Brian Wilkerson 2012/03/06 16:39:45 Let's rename this to "arguments" (in a later CL is
scheglov 2012/03/06 17:11:46 Done.
private Element referencedElement;
public DartInvocation(List<DartExpression> args) {
- this.args = becomeParentOf(args);
+ this.args.addAll(args);
}
public DartExpression getTarget() {

Powered by Google App Engine
This is Rietveld 408576698