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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 LibraryReference library; | 159 LibraryReference library; |
160 } | 160 } |
161 } | 161 } |
162 | 162 |
163 type Library { | 163 type Library { |
164 Byte flags (isExternal); | 164 Byte flags (isExternal); |
165 CanonicalNameReference canonicalName; | 165 CanonicalNameReference canonicalName; |
166 StringReference name; | 166 StringReference name; |
167 // An absolute path URI to the .dart file from which the library was created. | 167 // An absolute path URI to the .dart file from which the library was created. |
168 UriReference fileUri; | 168 UriReference fileUri; |
| 169 List<Expression> annotations; |
169 List<LibraryDependency> libraryDependencies; | 170 List<LibraryDependency> libraryDependencies; |
170 List<Class> classes; | 171 List<Class> classes; |
171 List<Field> fields; | 172 List<Field> fields; |
172 List<Procedure> procedures; | 173 List<Procedure> procedures; |
173 } | 174 } |
174 | 175 |
175 type LibraryDependency { | 176 type LibraryDependency { |
176 Byte flags (isExport, isDeferred); | 177 Byte flags (isExport, isDeferred); |
177 List<Expression> annotations; | 178 List<Expression> annotations; |
178 LibraryReference targetLibrary; | 179 LibraryReference targetLibrary; |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 Option<DartType> bound; | 981 Option<DartType> bound; |
981 } | 982 } |
982 | 983 |
983 type TypeParameter { | 984 type TypeParameter { |
984 // Note: there is no tag on TypeParameter | 985 // Note: there is no tag on TypeParameter |
985 StringReference name; // Cosmetic, may be empty, not unique. | 986 StringReference name; // Cosmetic, may be empty, not unique. |
986 DartType bound; // 'dynamic' if no explicit bound was given. | 987 DartType bound; // 'dynamic' if no explicit bound was given. |
987 } | 988 } |
988 | 989 |
989 ``` | 990 ``` |
OLD | NEW |