| Index: compiler/java/com/google/dart/compiler/ast/DartFieldDefinition.java
|
| diff --git a/compiler/java/com/google/dart/compiler/ast/DartFieldDefinition.java b/compiler/java/com/google/dart/compiler/ast/DartFieldDefinition.java
|
| index da502141b22af430ccc332ae255d9f9edb619baa..3425189d0f1f3a1ba9a228f1dea0d70d6200d527 100644
|
| --- a/compiler/java/com/google/dart/compiler/ast/DartFieldDefinition.java
|
| +++ b/compiler/java/com/google/dart/compiler/ast/DartFieldDefinition.java
|
| @@ -12,11 +12,11 @@ import java.util.List;
|
| public class DartFieldDefinition extends DartNode {
|
|
|
| private DartTypeNode typeNode;
|
| - private final List<DartField> fields;
|
| + private final NodeList<DartField> fields = NodeList.create(this);
|
|
|
| public DartFieldDefinition(DartTypeNode typeNode, List<DartField> fields) {
|
| this.setTypeNode(typeNode);
|
| - this.fields = becomeParentOf(fields);
|
| + this.fields.addAll(fields);
|
| }
|
|
|
| public DartTypeNode getTypeNode() {
|
| @@ -36,7 +36,7 @@ public class DartFieldDefinition extends DartNode {
|
| if (getTypeNode() != null) {
|
| getTypeNode().accept(visitor);
|
| }
|
| - visitor.visit(getFields());
|
| + fields.accept(visitor);
|
| }
|
|
|
| @Override
|
|
|