OLD | NEW |
1 library kernel.transformations.flags; | 1 library kernel.transformations.flags; |
2 | 2 |
3 import '../ast.dart'; | 3 import '../ast.dart'; |
4 | 4 |
5 /// Flags summarizing the kinds of AST nodes contained in a given member or | 5 /// Flags summarizing the kinds of AST nodes contained in a given member or |
6 /// class, for speeding up transformations that only affect certain types of | 6 /// class, for speeding up transformations that only affect certain types of |
7 /// nodes. | 7 /// nodes. |
8 /// | 8 /// |
9 /// These are set by the frontend and the deserializer. | 9 /// These are set by the frontend and the deserializer. |
10 class TransformerFlag { | 10 class TransformerFlag { |
11 /// The class or member contains 'super' calls, that is, one of the AST nodes | 11 /// The class or member contains 'super' calls, that is, one of the AST nodes |
12 /// [SuperPropertyGet], [SuperPropertySet], [SuperMethodInvocation]. | 12 /// [SuperPropertyGet], [SuperPropertySet], [SuperMethodInvocation]. |
13 static const int superCalls = 1 << 0; | 13 static const int superCalls = 1 << 0; |
14 | 14 |
15 /// Temporary flag used by sanity checks to indicate that the given member | 15 /// Temporary flag used by the verifier to indicate that the given member |
16 /// has been seen. | 16 /// has been seen. |
17 static const int seenBySanityCheck = 1 << 1; | 17 static const int seenByVerifier = 1 << 1; |
18 | 18 |
19 // TODO(asgerf): We could also add a flag for 'async' and will probably have | 19 // TODO(asgerf): We could also add a flag for 'async' and will probably have |
20 // one for closures as well. | 20 // one for closures as well. |
21 } | 21 } |
OLD | NEW |