Chromium Code Reviews| 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) |