Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: pkg/kernel/binary.md

Issue 2893803003: Add metadata annotations to library definitions. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/kernel/lib/ast.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 ```
OLDNEW
« no previous file with comments | « no previous file | pkg/kernel/lib/ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698