OLD | NEW |
1 // TODO(sigmund): rename universe => world | 1 // TODO(sigmund): rename universe => world |
2 /// Describes individual features that may be seen in a program. Most features | 2 /// Describes individual features that may be seen in a program. Most features |
3 /// can be described only by name using the [Feature] enum, some features are | 3 /// can be described only by name using the [Feature] enum, some features are |
4 /// expressed including details on how they are used. For example, whether a | 4 /// expressed including details on how they are used. For example, whether a |
5 /// list literal was constant or empty. | 5 /// list literal was constant or empty. |
6 /// | 6 /// |
7 /// The use of these features is typically discovered in an early phase of the | 7 /// The use of these features is typically discovered in an early phase of the |
8 /// compilation pipeline, for example during resolution. | 8 /// compilation pipeline, for example during resolution. |
9 library compiler.universe.feature; | 9 library compiler.universe.feature; |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 /// A compile time error. | 37 /// A compile time error. |
38 COMPILE_TIME_ERROR, | 38 COMPILE_TIME_ERROR, |
39 | 39 |
40 /// A fall through in a switch case. | 40 /// A fall through in a switch case. |
41 FALL_THROUGH_ERROR, | 41 FALL_THROUGH_ERROR, |
42 | 42 |
43 /// A field without an initializer. | 43 /// A field without an initializer. |
44 FIELD_WITHOUT_INITIALIZER, | 44 FIELD_WITHOUT_INITIALIZER, |
45 | 45 |
46 /// A ++/-- operation. | |
47 INC_DEC_OPERATION, | |
48 | |
49 /// A field whose initialization is not a constant. | 46 /// A field whose initialization is not a constant. |
50 LAZY_FIELD, | 47 LAZY_FIELD, |
51 | 48 |
52 /// A catch clause with a variable for the stack trace. | 49 /// A catch clause with a variable for the stack trace. |
53 STACK_TRACE_IN_CATCH, | 50 STACK_TRACE_IN_CATCH, |
54 | 51 |
55 /// String interpolation. | 52 /// String interpolation. |
56 STRING_INTERPOLATION, | 53 STRING_INTERPOLATION, |
57 | 54 |
58 /// String juxtaposition. | 55 /// String juxtaposition. |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 if (other is! ListLiteralUse) return false; | 129 if (other is! ListLiteralUse) return false; |
133 return type == other.type && | 130 return type == other.type && |
134 isConstant == other.isConstant && | 131 isConstant == other.isConstant && |
135 isEmpty == other.isEmpty; | 132 isEmpty == other.isEmpty; |
136 } | 133 } |
137 | 134 |
138 String toString() { | 135 String toString() { |
139 return 'ListLiteralUse($type,isConstant:$isConstant,isEmpty:$isEmpty)'; | 136 return 'ListLiteralUse($type,isConstant:$isConstant,isEmpty:$isEmpty)'; |
140 } | 137 } |
141 } | 138 } |
OLD | NEW |