| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #ifndef RUNTIME_VM_TOKEN_H_ | 5 #ifndef RUNTIME_VM_TOKEN_H_ |
| 6 #define RUNTIME_VM_TOKEN_H_ | 6 #define RUNTIME_VM_TOKEN_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
| 10 | 10 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 #define DART_KEYWORD_LIST(KW) \ | 148 #define DART_KEYWORD_LIST(KW) \ |
| 149 KW(kABSTRACT, "abstract", 0, kPseudoKeyword) /* == kFirstKeyword */ \ | 149 KW(kABSTRACT, "abstract", 0, kPseudoKeyword) /* == kFirstKeyword */ \ |
| 150 KW(kAS, "as", 11, kPseudoKeyword) \ | 150 KW(kAS, "as", 11, kPseudoKeyword) \ |
| 151 KW(kASSERT, "assert", 11, kKeyword) \ | 151 KW(kASSERT, "assert", 11, kKeyword) \ |
| 152 KW(kBREAK, "break", 0, kKeyword) \ | 152 KW(kBREAK, "break", 0, kKeyword) \ |
| 153 KW(kCASE, "case", 0, kKeyword) \ | 153 KW(kCASE, "case", 0, kKeyword) \ |
| 154 KW(kCATCH, "catch", 0, kKeyword) \ | 154 KW(kCATCH, "catch", 0, kKeyword) \ |
| 155 KW(kCLASS, "class", 0, kKeyword) \ | 155 KW(kCLASS, "class", 0, kKeyword) \ |
| 156 KW(kCONST, "const", 0, kKeyword) \ | 156 KW(kCONST, "const", 0, kKeyword) \ |
| 157 KW(kCONTINUE, "continue", 0, kKeyword) \ | 157 KW(kCONTINUE, "continue", 0, kKeyword) \ |
| 158 KW(kCOVARIANT, "covariant", 0, kPseudoKeyword) \ |
| 158 KW(kDEFAULT, "default", 0, kKeyword) \ | 159 KW(kDEFAULT, "default", 0, kKeyword) \ |
| 159 KW(kDO, "do", 0, kKeyword) \ | 160 KW(kDO, "do", 0, kKeyword) \ |
| 160 KW(kELSE, "else", 0, kKeyword) \ | 161 KW(kELSE, "else", 0, kKeyword) \ |
| 161 KW(kENUM, "enum", 0, kKeyword) \ | 162 KW(kENUM, "enum", 0, kKeyword) \ |
| 162 KW(kEXPORT, "export", 0, kPseudoKeyword) \ | 163 KW(kEXPORT, "export", 0, kPseudoKeyword) \ |
| 163 KW(kEXTENDS, "extends", 0, kKeyword) \ | 164 KW(kEXTENDS, "extends", 0, kKeyword) \ |
| 164 KW(kEXTERNAL, "external", 0, kPseudoKeyword) \ | 165 KW(kEXTERNAL, "external", 0, kPseudoKeyword) \ |
| 165 KW(kFACTORY, "factory", 0, kPseudoKeyword) \ | 166 KW(kFACTORY, "factory", 0, kPseudoKeyword) \ |
| 166 KW(kFALSE, "false", 0, kKeyword) \ | 167 KW(kFALSE, "false", 0, kKeyword) \ |
| 167 KW(kFINAL, "final", 0, kKeyword) \ | 168 KW(kFINAL, "final", 0, kKeyword) \ |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 private: | 325 private: |
| 325 static const char* name_[]; | 326 static const char* name_[]; |
| 326 static const char* tok_str_[]; | 327 static const char* tok_str_[]; |
| 327 static const uint8_t precedence_[]; | 328 static const uint8_t precedence_[]; |
| 328 static const Attribute attributes_[]; | 329 static const Attribute attributes_[]; |
| 329 }; | 330 }; |
| 330 | 331 |
| 331 } // namespace dart | 332 } // namespace dart |
| 332 | 333 |
| 333 #endif // RUNTIME_VM_TOKEN_H_ | 334 #endif // RUNTIME_VM_TOKEN_H_ |
| OLD | NEW |