Chromium Code Reviews| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 124 /** | 124 /** |
| 125 * If this is an instantiation of a generic type or generic executable, the | 125 * If this is an instantiation of a generic type or generic executable, the |
| 126 * type arguments used to instantiate it. Trailing type arguments of type | 126 * type arguments used to instantiate it. Trailing type arguments of type |
| 127 * `dynamic` are omitted. | 127 * `dynamic` are omitted. |
| 128 */ | 128 */ |
| 129 @Id(1) | 129 @Id(1) |
| 130 List<EntityRef> get typeArguments; | 130 List<EntityRef> get typeArguments; |
| 131 } | 131 } |
| 132 | 132 |
| 133 /** | 133 /** |
| 134 * Enum used to indicate the kind of element in [PackageIndex]. | |
| 135 */ | |
| 136 enum IndexElementKind { | |
| 137 /** | |
| 138 * The element itself. | |
|
Paul Berry
2016/02/26 19:02:05
I'm confused. How can the "kind" of an element be
| |
| 139 */ | |
| 140 element, | |
| 141 | |
| 142 /** | |
| 143 * The unnamed synthetic constructor a class element. | |
| 144 */ | |
| 145 constructor, | |
| 146 | |
| 147 /** | |
| 148 * The getter of a property introducing element. | |
| 149 */ | |
| 150 getter, | |
| 151 | |
| 152 /** | |
| 153 * The setter of a property introducing element. | |
| 154 */ | |
| 155 setter | |
| 156 } | |
| 157 | |
| 158 /** | |
| 134 * Enum used to indicate the kind of index relation. | 159 * Enum used to indicate the kind of index relation. |
| 135 */ | 160 */ |
| 136 enum IndexRelationKind { | 161 enum IndexRelationKind { |
| 137 /** | 162 /** |
| 138 * Left: class. | 163 * Left: class. |
| 139 * Is extended by. | 164 * Is extended by. |
| 140 * Right: other class declaration. | 165 * Right: other class declaration. |
| 141 */ | 166 */ |
| 142 IS_EXTENDED_BY, | 167 IS_EXTENDED_BY, |
| 143 | 168 |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 430 | 455 |
| 431 /** | 456 /** |
| 432 * Index information about a package. | 457 * Index information about a package. |
| 433 */ | 458 */ |
| 434 @TopLevel('Indx') | 459 @TopLevel('Indx') |
| 435 abstract class PackageIndex extends base.SummaryClass { | 460 abstract class PackageIndex extends base.SummaryClass { |
| 436 factory PackageIndex.fromBuffer(List<int> buffer) => | 461 factory PackageIndex.fromBuffer(List<int> buffer) => |
| 437 generated.readPackageIndex(buffer); | 462 generated.readPackageIndex(buffer); |
| 438 | 463 |
| 439 /** | 464 /** |
| 465 * Each item of this list corresponds to a unique referenced element. It is | |
| 466 * the kind of the element. | |
| 467 */ | |
| 468 @Id(6) | |
| 469 List<IndexElementKind> get elementKinds; | |
| 470 | |
| 471 /** | |
| 440 * Each item of this list corresponds to a unique library URI with an element | 472 * Each item of this list corresponds to a unique library URI with an element |
| 441 * referenced in the [PackageIndex]. It is an index into [uris] list. | 473 * referenced in the [PackageIndex]. It is an index into [uris] list. |
| 442 */ | 474 */ |
| 443 @Id(2) | 475 @Id(2) |
| 444 List<int> get elementLibraryUris; | 476 List<int> get elementLibraryUris; |
| 445 | 477 |
| 446 /** | 478 /** |
| 447 * Each item of this list corresponds to a unique referenced element. It is | 479 * Each item of this list corresponds to a unique referenced element. It is |
| 448 * the offset of the element name relative to the beginning of the file. The | 480 * the offset of the element name relative to the beginning of the file. The |
| 449 * list is sorted in ascending order, so that the client can quickly check | 481 * list is sorted in ascending order, so that the client can quickly check |
| (...skipping 1674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2124 */ | 2156 */ |
| 2125 @Id(11) | 2157 @Id(11) |
| 2126 int get visibleLength; | 2158 int get visibleLength; |
| 2127 | 2159 |
| 2128 /** | 2160 /** |
| 2129 * If a local variable, the beginning of the visible range; zero otherwise. | 2161 * If a local variable, the beginning of the visible range; zero otherwise. |
| 2130 */ | 2162 */ |
| 2131 @Id(12) | 2163 @Id(12) |
| 2132 int get visibleOffset; | 2164 int get visibleOffset; |
| 2133 } | 2165 } |
| OLD | NEW |