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

Unified Diff: pkg/analyzer/tool/summary/idl.dart

Issue 1573633002: Implement support for Element.documentationComment in summaries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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: pkg/analyzer/tool/summary/idl.dart
diff --git a/pkg/analyzer/tool/summary/idl.dart b/pkg/analyzer/tool/summary/idl.dart
index e1d0a170d31c286228cb72d8431b9ea738753b3a..0e2b84b76663c90dfaa582dd08bb586115ddf4b5 100644
--- a/pkg/analyzer/tool/summary/idl.dart
+++ b/pkg/analyzer/tool/summary/idl.dart
@@ -222,6 +222,13 @@ class UnlinkedClass {
int nameOffset;
/**
+ * Documentation comment for the class, or `null` if there is no
+ * documentation comment.
+ */
+ @informative
+ UnlinkedDocumentationComment documentationComment;
+
+ /**
* Type parameters of the class, if any.
*/
List<UnlinkedTypeParam> typeParameters;
@@ -287,6 +294,19 @@ class UnlinkedCombinator {
}
/**
+ * Unlinked summary information about a documentation comment.
+ */
+class UnlinkedDocumentationComment {
+ /**
+ * Text of the documentation comment, with '\r\n' replaced by '\n'.
+ *
+ * References appearing within the doc comment in square brackets are not
+ * specially encoded.
+ */
+ String text;
+}
+
+/**
* Unlinked summary information about an enum declaration.
*/
class UnlinkedEnum {
@@ -302,6 +322,13 @@ class UnlinkedEnum {
int nameOffset;
/**
+ * Documentation comment for the enum, or `null` if there is no documentation
+ * comment.
+ */
+ @informative
+ UnlinkedDocumentationComment documentationComment;
+
+ /**
* Values listed in the enum declaration, in declaration order.
*/
List<UnlinkedEnumValue> values;
@@ -322,6 +349,13 @@ class UnlinkedEnumValue {
*/
@informative
int nameOffset;
+
+ /**
+ * Documentation comment for the enum value, or `null` if there is no
+ * documentation comment.
+ */
+ @informative
+ UnlinkedDocumentationComment documentationComment;
}
/**
@@ -346,6 +380,13 @@ class UnlinkedExecutable {
int nameOffset;
/**
+ * Documentation comment for the executable, or `null` if there is no
+ * documentation comment.
+ */
+ @informative
+ UnlinkedDocumentationComment documentationComment;
+
+ /**
* Type parameters of the executable, if any. Empty if support for generic
* method syntax is disabled.
*/
@@ -718,6 +759,13 @@ class UnlinkedTypedef {
int nameOffset;
/**
+ * Documentation comment for the typedef, or `null` if there is no
+ * documentation comment.
+ */
+ @informative
+ UnlinkedDocumentationComment documentationComment;
+
+ /**
* Type parameters of the typedef, if any.
*/
List<UnlinkedTypeParam> typeParameters;
@@ -824,6 +872,13 @@ class UnlinkedUnit {
int libraryNameLength;
/**
+ * Documentation comment for the library, or `null` if there is no
+ * documentation comment.
+ */
+ @informative
+ UnlinkedDocumentationComment libraryDocumentationComment;
+
+ /**
* Unlinked public namespace of this compilation unit.
*/
UnlinkedPublicNamespace publicNamespace;
@@ -894,6 +949,13 @@ class UnlinkedVariable {
int nameOffset;
/**
+ * Documentation comment for the variable, or `null` if there is no
+ * documentation comment.
+ */
+ @informative
+ UnlinkedDocumentationComment documentationComment;
+
+ /**
* Declared type of the variable. Note that when strong mode is enabled, the
* actual type of the variable may be different due to type inference.
*/

Powered by Google App Engine
This is Rietveld 408576698