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

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

Issue 11312081: Issue 6251. Resolve and rename [id] references in documentation comments (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/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);
}
}

Powered by Google App Engine
This is Rietveld 408576698