OLD | NEW |
1 This file describes the binary format of Dart Kernel. | 1 This file describes the binary format of Dart Kernel. |
2 | 2 |
3 Notation | 3 Notation |
4 -------- | 4 -------- |
5 Bitmasks are described with the syntax: | 5 Bitmasks are described with the syntax: |
6 ```scala | 6 ```scala |
7 Byte flags (flag1, flag2, ..., flagN) | 7 Byte flags (flag1, flag2, ..., flagN) |
8 ``` | 8 ``` |
9 where 'flag<N>' is the N-th least significant bit, | 9 where 'flag<N>' is the N-th least significant bit, |
10 (so flag1 is the least significant bit). | 10 (so flag1 is the least significant bit). |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } | 175 } |
176 | 176 |
177 type Library { | 177 type Library { |
178 Byte flags (isExternal); | 178 Byte flags (isExternal); |
179 CanonicalNameReference canonicalName; | 179 CanonicalNameReference canonicalName; |
180 StringReference name; | 180 StringReference name; |
181 // An absolute path URI to the .dart file from which the library was created. | 181 // An absolute path URI to the .dart file from which the library was created. |
182 UriReference fileUri; | 182 UriReference fileUri; |
183 List<Expression> annotations; | 183 List<Expression> annotations; |
184 List<LibraryDependency> libraryDependencies; | 184 List<LibraryDependency> libraryDependencies; |
| 185 List<CanonicalNameReference> additionalExports; |
185 List<LibraryPart> libraryParts; | 186 List<LibraryPart> libraryParts; |
186 List<Typedef> typedefs; | 187 List<Typedef> typedefs; |
187 List<Class> classes; | 188 List<Class> classes; |
188 List<Field> fields; | 189 List<Field> fields; |
189 List<Procedure> procedures; | 190 List<Procedure> procedures; |
190 } | 191 } |
191 | 192 |
192 type LibraryDependency { | 193 type LibraryDependency { |
193 Byte flags (isExport, isDeferred); | 194 Byte flags (isExport, isDeferred); |
194 List<Expression> annotations; | 195 List<Expression> annotations; |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1039 Option<DartType> bound; | 1040 Option<DartType> bound; |
1040 } | 1041 } |
1041 | 1042 |
1042 type TypeParameter { | 1043 type TypeParameter { |
1043 // Note: there is no tag on TypeParameter | 1044 // Note: there is no tag on TypeParameter |
1044 StringReference name; // Cosmetic, may be empty, not unique. | 1045 StringReference name; // Cosmetic, may be empty, not unique. |
1045 DartType bound; // 'dynamic' if no explicit bound was given. | 1046 DartType bound; // 'dynamic' if no explicit bound was given. |
1046 } | 1047 } |
1047 | 1048 |
1048 ``` | 1049 ``` |
OLD | NEW |