| Index: compiler/java/com/google/dart/compiler/ast/DartComment.java
|
| diff --git a/compiler/java/com/google/dart/compiler/ast/DartComment.java b/compiler/java/com/google/dart/compiler/ast/DartComment.java
|
| index c55a075654ba7acf183633d833c0bbbcf78723fa..c48e78713c113c66327c22c82cb82f691f4a3a4b 100644
|
| --- a/compiler/java/com/google/dart/compiler/ast/DartComment.java
|
| +++ b/compiler/java/com/google/dart/compiler/ast/DartComment.java
|
| @@ -8,6 +8,7 @@ import com.google.dart.compiler.Source;
|
| import com.google.dart.compiler.common.SourceInfo;
|
|
|
| public class DartComment extends DartNode {
|
| + private final NodeList<DartIdentifier> identifiers = NodeList.create(this);
|
|
|
| @SuppressWarnings("unused")
|
| private static final long serialVersionUID = 6066713446767517627L;
|
| @@ -49,14 +50,22 @@ public class DartComment extends DartNode {
|
| public boolean isEndOfLine() {
|
| return style == Style.END_OF_LINE;
|
| }
|
| +
|
| + /**
|
| + * Adds <code>[id]</code> reference.
|
| + */
|
| + public void addTokenIdentifier(DartIdentifier id) {
|
| + identifiers.add(id);
|
| + }
|
|
|
| @Override
|
| public void visitChildren(ASTVisitor<?> visitor) {
|
| + identifiers.accept(visitor);
|
| }
|
|
|
| @Override
|
| public <R> R accept(ASTVisitor<R> visitor) {
|
| - return null;
|
| + return visitor.visitComment(this);
|
| }
|
|
|
| }
|
|
|