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

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

Issue 2758123002: Create a new element for generic function types (Closed)
Patch Set: Created 3 years, 9 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/dart/element/type.dart ('k') | no next file » | 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 2ca4bb4dd377a4cf0e0156b4771e2bf75bba44bd..3f365dc1673ea54729eaa65dda61e5067d0f4472 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -2510,6 +2510,37 @@ enum UnlinkedExprOperation {
}
/**
+ * Unlinked summary information about a generic function type.
+ */
+abstract class UnlinkedGenericFunctionType extends base.SummaryClass {
+ /**
+ * The offset of the return type.
+ */
+ @informative
+ @Id(0)
+ int get offset;
+
+ /**
+ * Parameters of the function type, if any.
+ */
+ @Id(3)
+ List<UnlinkedParam> get parameters;
+
+ /**
+ * Declared return type of the function type. Absent if the return type is
+ * implicit.
+ */
+ @Id(1)
+ EntityRef get returnType;
+
+ /**
+ * Type parameters of the function type, if any.
+ */
+ @Id(2)
+ List<UnlinkedTypeParam> get typeParameters;
+}
+
+/**
* Unlinked summary information about an import declaration.
*/
abstract class UnlinkedImport extends base.SummaryClass {
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/type.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698