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

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

Issue 2719353002: First cut at idl changes (Closed)
Patch Set: Created 3 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 | « no previous file | 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 3389fee6f4c634f6797c63c226bbb3d6618f8781..79bca31200957710c0e6321d17388341a63910a8 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -356,8 +356,8 @@ abstract class CodeRange extends base.SummaryClass {
}
/**
- * Summary information about a reference to a an entity such as a type, top
- * level executable, or executable within a class.
+ * Summary information about a reference to an entity such as a type, top level
+ * executable, or executable within a class.
*/
abstract class EntityRef extends base.SummaryClass {
/**
@@ -448,6 +448,13 @@ abstract class EntityRef extends base.SummaryClass {
*/
@Id(1)
List<EntityRef> get typeArguments;
+
+ /**
+ * If this is a function type, the type parameters defined for the function
+ * type (if any).
+ */
+ @Id(7)
+ List<UnlinkedTypeParam> get typeParameters;
}
/**
@@ -2637,7 +2644,14 @@ abstract class UnlinkedParam extends base.SummaryClass {
bool get isFinal;
/**
- * Indicates whether this is a function-typed parameter.
+ * Indicates whether this is a function-typed parameter. A parameter is
+ * function-typed if the declaration of the parameter has explicit formal
+ * parameters
+ * ```
+ * int functionTyped(int p)
+ * ```
+ * but is not function-typed if it does not, even if the type of the parameter
+ * is a function type.
*/
@Id(5)
bool get isFunctionTyped;
@@ -2867,6 +2881,14 @@ abstract class UnlinkedTypedef extends base.SummaryClass {
UnlinkedDocumentationComment get documentationComment;
/**
+ * Indicates whether this is a generic function type. Generic function types
+ * do not have [parameters], but encode the function type being defined as the
+ * [returnType].
+ */
+ @Id(8)
+ bool get isGenericFunctionType;
Paul Berry 2017/02/28 17:06:49 Question: How do you intend to represent a new-sty
Brian Wilkerson 2017/02/28 17:19:57 That question reveals a terminology issue. The nam
Paul Berry 2017/02/28 17:38:57 Documentation is good, but it's even nicer when th
+
+ /**
* Name of the typedef.
*/
@Id(0)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698