| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 | 392 |
| 393 static SequenceNode* NodeAsSequenceNode(intptr_t sequence_pos, | 393 static SequenceNode* NodeAsSequenceNode(intptr_t sequence_pos, |
| 394 AstNode* node, | 394 AstNode* node, |
| 395 LocalScope* scope); | 395 LocalScope* scope); |
| 396 | 396 |
| 397 SequenceNode* MakeImplicitConstructor(const Function& func); | 397 SequenceNode* MakeImplicitConstructor(const Function& func); |
| 398 AstNode* MakeStaticCall(const char* class_name, | 398 AstNode* MakeStaticCall(const char* class_name, |
| 399 const char* function_name, | 399 const char* function_name, |
| 400 ArgumentListNode* arguments); | 400 ArgumentListNode* arguments); |
| 401 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); | 401 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); |
| 402 String& Interpolate(ArrayNode* strings); | |
| 403 | 402 |
| 404 void CheckFunctionIsCallable(intptr_t token_index, const Function& function); | 403 void CheckFunctionIsCallable(intptr_t token_index, const Function& function); |
| 405 | 404 |
| 406 const Script& script_; | 405 const Script& script_; |
| 407 const TokenStream& tokens_; | 406 const TokenStream& tokens_; |
| 408 intptr_t token_index_; | 407 intptr_t token_index_; |
| 409 Token::Kind token_kind_; // Cached token kind for the token_index_. | 408 Token::Kind token_kind_; // Cached token kind for the token_index_. |
| 410 Block* current_block_; | 409 Block* current_block_; |
| 411 | 410 |
| 412 // is_top_level_ is true if parsing the "top level" of a compilation unit, | 411 // is_top_level_ is true if parsing the "top level" of a compilation unit, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 437 TryBlocks* try_blocks_list_; | 436 TryBlocks* try_blocks_list_; |
| 438 | 437 |
| 439 char error_msg_[kErrorBuflen]; | 438 char error_msg_[kErrorBuflen]; |
| 440 | 439 |
| 441 DISALLOW_COPY_AND_ASSIGN(Parser); | 440 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 442 }; | 441 }; |
| 443 | 442 |
| 444 } // namespace dart | 443 } // namespace dart |
| 445 | 444 |
| 446 #endif // VM_PARSER_H_ | 445 #endif // VM_PARSER_H_ |
| OLD | NEW |