| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 /** | 142 /** |
| 143 * If this is an instantiation of a generic type or generic executable, the | 143 * If this is an instantiation of a generic type or generic executable, the |
| 144 * type arguments used to instantiate it. Trailing type arguments of type | 144 * type arguments used to instantiate it. Trailing type arguments of type |
| 145 * `dynamic` are omitted. | 145 * `dynamic` are omitted. |
| 146 */ | 146 */ |
| 147 @Id(1) | 147 @Id(1) |
| 148 List<EntityRef> get typeArguments; | 148 List<EntityRef> get typeArguments; |
| 149 } | 149 } |
| 150 | 150 |
| 151 /** | 151 /** |
| 152 * When we need to reference a synthetic element in [PackageIndex] we use a | 152 * Enum used to indicate the kind of an index relation. |
| 153 * value of this enum to specify which kind of the synthetic element we | |
| 154 * actually reference. | |
| 155 */ | |
| 156 enum IndexSyntheticElementKind { | |
| 157 /** | |
| 158 * Not a synthetic element. | |
| 159 */ | |
| 160 notSynthetic, | |
| 161 | |
| 162 /** | |
| 163 * The unnamed synthetic constructor a class element. | |
| 164 */ | |
| 165 constructor, | |
| 166 | |
| 167 /** | |
| 168 * The synthetic getter of a property introducing element. | |
| 169 */ | |
| 170 getter, | |
| 171 | |
| 172 /** | |
| 173 * The synthetic setter of a property introducing element. | |
| 174 */ | |
| 175 setter | |
| 176 } | |
| 177 | |
| 178 /** | |
| 179 * Enum used to indicate the kind of index relation. | |
| 180 */ | 153 */ |
| 181 enum IndexRelationKind { | 154 enum IndexRelationKind { |
| 182 /** | 155 /** |
| 183 * Left: class. | 156 * Left: class. |
| 184 * Is extended by. | 157 * Is extended by. |
| 185 * Right: other class declaration. | 158 * Right: other class declaration. |
| 186 */ | 159 */ |
| 187 IS_EXTENDED_BY, | 160 IS_EXTENDED_BY, |
| 188 | 161 |
| 189 /** | 162 /** |
| (...skipping 11 matching lines...) Expand all Loading... |
| 201 IS_MIXED_IN_BY, | 174 IS_MIXED_IN_BY, |
| 202 | 175 |
| 203 /** | 176 /** |
| 204 * Left: method, property accessor, function, variable. | 177 * Left: method, property accessor, function, variable. |
| 205 * Is invoked at. | 178 * Is invoked at. |
| 206 * Right: location. | 179 * Right: location. |
| 207 */ | 180 */ |
| 208 IS_INVOKED_BY, | 181 IS_INVOKED_BY, |
| 209 | 182 |
| 210 /** | 183 /** |
| 184 * Left: method, property accessor, function, variable. |
| 185 * Is invoked with a qualifier at. |
| 186 * Right: location. |
| 187 */ |
| 188 IS_INVOKED_QUALIFIED_BY, |
| 189 |
| 190 /** |
| 211 * Left: any element. | 191 * Left: any element. |
| 212 * Is referenced (and not invoked, read/written) at. | 192 * Is referenced (and not invoked, read/written) at. |
| 213 * Right: location. | 193 * Right: location. |
| 214 */ | 194 */ |
| 215 IS_REFERENCED_BY | 195 IS_REFERENCED_BY, |
| 196 |
| 197 /** |
| 198 * Left: any element. |
| 199 * Is referenced (and not invoked, read/written) with a qualifier at. |
| 200 * Right: location. |
| 201 */ |
| 202 IS_REFERENCED_QUALIFIED_BY |
| 216 } | 203 } |
| 217 | 204 |
| 218 /** | 205 /** |
| 206 * When we need to reference a synthetic element in [PackageIndex] we use a |
| 207 * value of this enum to specify which kind of the synthetic element we |
| 208 * actually reference. |
| 209 */ |
| 210 enum IndexSyntheticElementKind { |
| 211 /** |
| 212 * Not a synthetic element. |
| 213 */ |
| 214 notSynthetic, |
| 215 |
| 216 /** |
| 217 * The unnamed synthetic constructor a class element. |
| 218 */ |
| 219 constructor, |
| 220 |
| 221 /** |
| 222 * The synthetic getter of a property introducing element. |
| 223 */ |
| 224 getter, |
| 225 |
| 226 /** |
| 227 * The synthetic setter of a property introducing element. |
| 228 */ |
| 229 setter |
| 230 } |
| 231 |
| 232 /** |
| 219 * Information about a dependency that exists between one library and another | 233 * Information about a dependency that exists between one library and another |
| 220 * due to an "import" declaration. | 234 * due to an "import" declaration. |
| 221 */ | 235 */ |
| 222 abstract class LinkedDependency extends base.SummaryClass { | 236 abstract class LinkedDependency extends base.SummaryClass { |
| 223 /** | 237 /** |
| 224 * URI for the compilation units listed in the library's `part` declarations. | 238 * URI for the compilation units listed in the library's `part` declarations. |
| 225 * These URIs are relative to the importing library. | 239 * These URIs are relative to the importing library. |
| 226 */ | 240 */ |
| 227 @Id(1) | 241 @Id(1) |
| 228 List<String> get parts; | 242 List<String> get parts; |
| (...skipping 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2176 */ | 2190 */ |
| 2177 @Id(11) | 2191 @Id(11) |
| 2178 int get visibleLength; | 2192 int get visibleLength; |
| 2179 | 2193 |
| 2180 /** | 2194 /** |
| 2181 * If a local variable, the beginning of the visible range; zero otherwise. | 2195 * If a local variable, the beginning of the visible range; zero otherwise. |
| 2182 */ | 2196 */ |
| 2183 @Id(12) | 2197 @Id(12) |
| 2184 int get visibleOffset; | 2198 int get visibleOffset; |
| 2185 } | 2199 } |
| OLD | NEW |