| 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_PARSER_H_ | 5 #ifndef VM_PARSER_H_ |
| 6 #define VM_PARSER_H_ | 6 #define VM_PARSER_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 #include "vm/ast.h" | 10 #include "vm/ast.h" |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 AstNode* node, | 416 AstNode* node, |
| 417 LocalScope* scope); | 417 LocalScope* scope); |
| 418 | 418 |
| 419 SequenceNode* MakeImplicitConstructor(const Function& func); | 419 SequenceNode* MakeImplicitConstructor(const Function& func); |
| 420 AstNode* MakeStaticCall(const char* class_name, | 420 AstNode* MakeStaticCall(const char* class_name, |
| 421 const char* function_name, | 421 const char* function_name, |
| 422 ArgumentListNode* arguments); | 422 ArgumentListNode* arguments); |
| 423 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); | 423 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); |
| 424 | 424 |
| 425 void CheckFunctionIsCallable(intptr_t token_index, const Function& function); | 425 void CheckFunctionIsCallable(intptr_t token_index, const Function& function); |
| 426 void CheckOperatorArity(const MemberDesc& member, Token::Kind operator_token); |
| 427 |
| 426 | 428 |
| 427 const Script& script_; | 429 const Script& script_; |
| 428 const TokenStream& tokens_; | 430 const TokenStream& tokens_; |
| 429 intptr_t token_index_; | 431 intptr_t token_index_; |
| 430 Token::Kind token_kind_; // Cached token kind for the token_index_. | 432 Token::Kind token_kind_; // Cached token kind for the token_index_. |
| 431 Block* current_block_; | 433 Block* current_block_; |
| 432 | 434 |
| 433 // is_top_level_ is true if parsing the "top level" of a compilation unit, | 435 // is_top_level_ is true if parsing the "top level" of a compilation unit, |
| 434 // that is interface and class definitions. | 436 // that is interface and class definitions. |
| 435 bool is_top_level_; | 437 bool is_top_level_; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 456 // code at all points in the try block where an exit from the block is | 458 // code at all points in the try block where an exit from the block is |
| 457 // done using 'return', 'break' or 'continue' statements. | 459 // done using 'return', 'break' or 'continue' statements. |
| 458 TryBlocks* try_blocks_list_; | 460 TryBlocks* try_blocks_list_; |
| 459 | 461 |
| 460 DISALLOW_COPY_AND_ASSIGN(Parser); | 462 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 461 }; | 463 }; |
| 462 | 464 |
| 463 } // namespace dart | 465 } // namespace dart |
| 464 | 466 |
| 465 #endif // VM_PARSER_H_ | 467 #endif // VM_PARSER_H_ |
| OLD | NEW |