| 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 VM_TOKEN_H_ | 5 #ifndef VM_TOKEN_H_ |
| 6 #define VM_TOKEN_H_ | 6 #define VM_TOKEN_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 static bool NeedsLiteralToken(Kind tok) { | 260 static bool NeedsLiteralToken(Kind tok) { |
| 261 ASSERT(tok < kNumTokens); | 261 ASSERT(tok < kNumTokens); |
| 262 return ((tok == Token::kINTEGER) || | 262 return ((tok == Token::kINTEGER) || |
| 263 (tok == Token::kSTRING) || | 263 (tok == Token::kSTRING) || |
| 264 (tok == Token::kINTERPOL_VAR) || | 264 (tok == Token::kINTERPOL_VAR) || |
| 265 (tok == Token::kERROR) || | 265 (tok == Token::kERROR) || |
| 266 (tok == Token::kDOUBLE)); | 266 (tok == Token::kDOUBLE)); |
| 267 } | 267 } |
| 268 | 268 |
| 269 private: | 269 private: |
| 270 static const char* name_[kNumTokens]; | 270 static const char* name_[]; |
| 271 static const char* tok_str_[kNumTokens]; | 271 static const char* tok_str_[]; |
| 272 static const uint8_t precedence_[kNumTokens]; | 272 static const uint8_t precedence_[]; |
| 273 static const Attribute attributes_[kNumTokens]; | 273 static const Attribute attributes_[]; |
| 274 }; | 274 }; |
| 275 | 275 |
| 276 | 276 |
| 277 } // namespace dart | 277 } // namespace dart |
| 278 | 278 |
| 279 #endif // VM_TOKEN_H_ | 279 #endif // VM_TOKEN_H_ |
| OLD | NEW |