OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * This file is an "idl" style description of the summary format. It | 6 * This file is an "idl" style description of the summary format. It |
7 * contains abstract classes which declare the interface for reading data from | 7 * contains abstract classes which declare the interface for reading data from |
8 * summaries. It is parsed and transformed into code that implements the | 8 * summaries. It is parsed and transformed into code that implements the |
9 * summary format. | 9 * summary format. |
10 * | 10 * |
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1026 * Indicates whether the executable is declared using the `external` keyword. | 1026 * Indicates whether the executable is declared using the `external` keyword. |
1027 */ | 1027 */ |
1028 bool get isExternal; | 1028 bool get isExternal; |
1029 | 1029 |
1030 /** | 1030 /** |
1031 * Indicates whether the executable is declared using the `factory` keyword. | 1031 * Indicates whether the executable is declared using the `factory` keyword. |
1032 */ | 1032 */ |
1033 bool get isFactory; | 1033 bool get isFactory; |
1034 | 1034 |
1035 /** | 1035 /** |
| 1036 * Indicates whether the executable is a redirected constructor. |
| 1037 */ |
| 1038 bool get isRedirectedConstructor; |
| 1039 |
| 1040 /** |
1036 * Indicates whether the executable is declared using the `static` keyword. | 1041 * Indicates whether the executable is declared using the `static` keyword. |
1037 * | 1042 * |
1038 * Note that for top level executables, this flag is false, since they are | 1043 * Note that for top level executables, this flag is false, since they are |
1039 * not declared using the `static` keyword (even though they are considered | 1044 * not declared using the `static` keyword (even though they are considered |
1040 * static for semantic purposes). | 1045 * static for semantic purposes). |
1041 */ | 1046 */ |
1042 bool get isStatic; | 1047 bool get isStatic; |
1043 | 1048 |
1044 /** | 1049 /** |
1045 * The kind of the executable (function/method, getter, setter, or | 1050 * The kind of the executable (function/method, getter, setter, or |
(...skipping 18 matching lines...) Expand all Loading... |
1064 int get nameOffset; | 1069 int get nameOffset; |
1065 | 1070 |
1066 /** | 1071 /** |
1067 * Parameters of the executable, if any. Note that getters have no | 1072 * Parameters of the executable, if any. Note that getters have no |
1068 * parameters (hence this will be the empty list), and setters have a single | 1073 * parameters (hence this will be the empty list), and setters have a single |
1069 * parameter. | 1074 * parameter. |
1070 */ | 1075 */ |
1071 List<UnlinkedParam> get parameters; | 1076 List<UnlinkedParam> get parameters; |
1072 | 1077 |
1073 /** | 1078 /** |
| 1079 * If [isRedirectedConstructor] and [isFactory] are both `true`, the |
| 1080 * constructor to which this constructor redirects; otherwise empty. |
| 1081 */ |
| 1082 EntityRef get redirectedConstructor; |
| 1083 |
| 1084 /** |
| 1085 * If [isRedirectedConstructor] is `true` and [isFactory] is `false`, the |
| 1086 * name of the constructor that this constructor redirects to; otherwise |
| 1087 * empty. |
| 1088 */ |
| 1089 String get redirectedConstructorName; |
| 1090 |
| 1091 /** |
1074 * Declared return type of the executable. Absent if the executable is a | 1092 * Declared return type of the executable. Absent if the executable is a |
1075 * constructor or the return type is implicit. | 1093 * constructor or the return type is implicit. |
1076 */ | 1094 */ |
1077 EntityRef get returnType; | 1095 EntityRef get returnType; |
1078 | 1096 |
1079 /** | 1097 /** |
1080 * Type parameters of the executable, if any. Empty if support for generic | 1098 * Type parameters of the executable, if any. Empty if support for generic |
1081 * method syntax is disabled. | 1099 * method syntax is disabled. |
1082 */ | 1100 */ |
1083 List<UnlinkedTypeParam> get typeParameters; | 1101 List<UnlinkedTypeParam> get typeParameters; |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1657 * | 1675 * |
1658 * Non-propagable variables have a [propagatedTypeSlot] of zero. | 1676 * Non-propagable variables have a [propagatedTypeSlot] of zero. |
1659 */ | 1677 */ |
1660 int get propagatedTypeSlot; | 1678 int get propagatedTypeSlot; |
1661 | 1679 |
1662 /** | 1680 /** |
1663 * Declared type of the variable. Absent if the type is implicit. | 1681 * Declared type of the variable. Absent if the type is implicit. |
1664 */ | 1682 */ |
1665 EntityRef get type; | 1683 EntityRef get type; |
1666 } | 1684 } |
OLD | NEW |