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; | |
186 List<LibraryPart> libraryParts; | 185 List<LibraryPart> libraryParts; |
187 List<Typedef> typedefs; | 186 List<Typedef> typedefs; |
188 List<Class> classes; | 187 List<Class> classes; |
189 List<Field> fields; | 188 List<Field> fields; |
190 List<Procedure> procedures; | 189 List<Procedure> procedures; |
191 } | 190 } |
192 | 191 |
193 type LibraryDependency { | 192 type LibraryDependency { |
194 Byte flags (isExport, isDeferred); | 193 Byte flags (isExport, isDeferred); |
195 List<Expression> annotations; | 194 List<Expression> annotations; |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 Option<DartType> bound; | 1039 Option<DartType> bound; |
1041 } | 1040 } |
1042 | 1041 |
1043 type TypeParameter { | 1042 type TypeParameter { |
1044 // Note: there is no tag on TypeParameter | 1043 // Note: there is no tag on TypeParameter |
1045 StringReference name; // Cosmetic, may be empty, not unique. | 1044 StringReference name; // Cosmetic, may be empty, not unique. |
1046 DartType bound; // 'dynamic' if no explicit bound was given. | 1045 DartType bound; // 'dynamic' if no explicit bound was given. |
1047 } | 1046 } |
1048 | 1047 |
1049 ``` | 1048 ``` |
OLD | NEW |