OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 /// A bit flag used by [LibraryInfo] indicating that a library is used by | 5 /// A bit flag used by [LibraryInfo] indicating that a library is used by |
6 /// dart2js. | 6 /// dart2js. |
7 /// | 7 /// |
8 /// This declaration duplicates the declaration in the SDK's "libraries.dart". | 8 /// This declaration duplicates the declaration in the SDK's "libraries.dart". |
9 const int DART2JS_PLATFORM = 1; | 9 const int DART2JS_PLATFORM = 1; |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 return null; | 29 return null; |
30 } | 30 } |
31 | 31 |
32 /// The contexts that a library can be used from. | 32 /// The contexts that a library can be used from. |
33 /// | 33 /// |
34 /// This declaration duplicates the declaration in the SDK's "libraries.dart". | 34 /// This declaration duplicates the declaration in the SDK's "libraries.dart". |
35 enum Category { | 35 enum Category { |
36 /// Indicates that a library can be used in a browser context. | 36 /// Indicates that a library can be used in a browser context. |
37 client, | 37 client, |
38 | 38 |
39 /// Indicates that a lbirary can be used in a command line context. | 39 /// Indicates that a library can be used in a command line context. |
40 server, | 40 server, |
41 | 41 |
42 /// Indicates that a library can be used from embedded devices. | 42 /// Indicates that a library can be used from embedded devices. |
43 embedded | 43 embedded |
44 } | 44 } |
45 | 45 |
46 /// Information about a "dart:" library gleaned from the SDK's "libraries.dart" | 46 /// Information about a "dart:" library gleaned from the SDK's "libraries.dart" |
47 /// file. | 47 /// file. |
48 /// | 48 /// |
49 /// This declaration duplicates the declaration in "libraries.dart". | 49 /// This declaration duplicates the declaration in "libraries.dart". |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 final int level; | 150 final int level; |
151 | 151 |
152 final String name; | 152 final String name; |
153 | 153 |
154 final String description; | 154 final String description; |
155 | 155 |
156 const Maturity(this.level, this.name, this.description); | 156 const Maturity(this.level, this.name, this.description); |
157 | 157 |
158 String toString() => "$name: $level\n$description\n"; | 158 String toString() => "$name: $level\n$description\n"; |
159 } | 159 } |
OLD | NEW |