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

Unified Diff: pkg/analyzer/lib/src/summary/idl.dart

Issue 1672413002: Add summary support for annotations. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.dart ('k') | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/idl.dart
diff --git a/pkg/analyzer/lib/src/summary/idl.dart b/pkg/analyzer/lib/src/summary/idl.dart
index 921781d10b7d9934fc923d9f62dd43902d991666..51cb09130fd07285086c6edca523b2ce3a4bb6f9 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -440,6 +440,11 @@ abstract class UnlinkedClass extends base.SummaryClass {
UnlinkedDocumentationComment get documentationComment;
/**
+ * Annotations for this class.
+ */
+ List<UnlinkedConst> get annotations;
+
+ /**
* Type parameters of the class, if any.
*/
List<UnlinkedTypeParam> get typeParameters;
@@ -879,6 +884,11 @@ abstract class UnlinkedEnum extends base.SummaryClass {
UnlinkedDocumentationComment get documentationComment;
/**
+ * Annotations for this enum.
+ */
+ List<UnlinkedConst> get annotations;
+
+ /**
* Values listed in the enum declaration, in declaration order.
*/
List<UnlinkedEnumValue> get values;
@@ -937,6 +947,11 @@ abstract class UnlinkedExecutable extends base.SummaryClass {
UnlinkedDocumentationComment get documentationComment;
/**
+ * Annotations for this executable.
+ */
+ List<UnlinkedConst> get annotations;
+
+ /**
* Type parameters of the executable, if any. Empty if support for generic
* method syntax is disabled.
*/
@@ -1049,6 +1064,11 @@ abstract class UnlinkedExportNonPublic extends base.SummaryClass {
*/
@informative
int get uriEnd;
+
+ /**
+ * Annotations for this export directive.
+ */
+ List<UnlinkedConst> get annotations;
}
/**
@@ -1084,6 +1104,11 @@ abstract class UnlinkedImport extends base.SummaryClass {
int get offset;
/**
+ * Annotations for this import declaration.
+ */
+ List<UnlinkedConst> get annotations;
+
+ /**
* Index into [UnlinkedUnit.references] of the prefix declared by this
* import declaration, or zero if this import declaration declares no prefix.
*
@@ -1144,6 +1169,11 @@ abstract class UnlinkedParam extends base.SummaryClass {
int get nameOffset;
/**
+ * Annotations for this parameter.
+ */
+ List<UnlinkedConst> get annotations;
+
+ /**
* If [isFunctionTyped] is `true`, the declared return type. If
* [isFunctionTyped] is `false`, the declared type. Absent if the type is
* implicit.
@@ -1228,6 +1258,11 @@ abstract class UnlinkedPart extends base.SummaryClass {
*/
@informative
int get uriEnd;
+
+ /**
+ * Annotations for this part declaration.
+ */
+ List<UnlinkedConst> get annotations;
}
/**
@@ -1337,6 +1372,11 @@ abstract class UnlinkedTypedef extends base.SummaryClass {
UnlinkedDocumentationComment get documentationComment;
/**
+ * Annotations for this typedef.
+ */
+ List<UnlinkedConst> get annotations;
+
+ /**
* Type parameters of the typedef, if any.
*/
List<UnlinkedTypeParam> get typeParameters;
@@ -1368,6 +1408,11 @@ abstract class UnlinkedTypeParam extends base.SummaryClass {
int get nameOffset;
/**
+ * Annotations for this type parameter.
+ */
+ List<UnlinkedConst> get annotations;
+
+ /**
* Bound of the type parameter, if a bound is explicitly declared. Otherwise
* null.
*/
@@ -1409,6 +1454,12 @@ abstract class UnlinkedUnit extends base.SummaryClass {
UnlinkedDocumentationComment get libraryDocumentationComment;
/**
+ * Annotations for the library declaration, or the empty list if there is no
+ * library declaration.
+ */
+ List<UnlinkedConst> get libraryAnnotations;
+
+ /**
* Unlinked public namespace of this compilation unit.
*/
UnlinkedPublicNamespace get publicNamespace;
@@ -1488,6 +1539,11 @@ abstract class UnlinkedVariable extends base.SummaryClass {
UnlinkedDocumentationComment get documentationComment;
/**
+ * Annotations for this variable.
+ */
+ List<UnlinkedConst> get annotations;
+
+ /**
* Declared type of the variable. Absent if the type is implicit.
*/
EntityRef get type;
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.dart ('k') | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698