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

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

Issue 8769044: Added code to associate a dart doc comment with a dart declaration node. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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/DartDeclaration.java
===================================================================
--- compiler/java/com/google/dart/compiler/ast/DartDeclaration.java (revision 2064)
+++ compiler/java/com/google/dart/compiler/ast/DartDeclaration.java (working copy)
@@ -15,7 +15,8 @@
public abstract class DartDeclaration<N extends DartExpression> extends DartNode {
private N name; // Not visited.
-
+ private DartComment dartDoc;
+
protected DartDeclaration(N name) {
this.name = becomeParentOf(name);
}
@@ -30,4 +31,13 @@
@Override
public abstract Element getSymbol();
+
+ public DartComment getDartDoc() {
+ return dartDoc;
+ }
+
+ public void setDartDoc(DartComment dartDoc) {
+ // dartDoc is still parented by the containing DartUnit.
+ this.dartDoc = dartDoc;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698