| 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 void ChainNewBlock(LocalScope* outer_scope); | 282 void ChainNewBlock(LocalScope* outer_scope); |
| 283 void OpenBlock(); | 283 void OpenBlock(); |
| 284 void OpenLoopBlock(); | 284 void OpenLoopBlock(); |
| 285 void OpenFunctionBlock(const Function& func); | 285 void OpenFunctionBlock(const Function& func); |
| 286 SequenceNode* CloseBlock(); | 286 SequenceNode* CloseBlock(); |
| 287 | 287 |
| 288 LocalVariable* LookupPhaseParameter(); | 288 LocalVariable* LookupPhaseParameter(); |
| 289 LocalVariable* LookupReceiver(LocalScope* from_scope, bool test_only); | 289 LocalVariable* LookupReceiver(LocalScope* from_scope, bool test_only); |
| 290 void CaptureReceiver(); | 290 void CaptureReceiver(); |
| 291 AstNode* LoadReceiver(intptr_t token_index); | 291 AstNode* LoadReceiver(intptr_t token_index); |
| 292 AstNode* LoadFieldIfUnresolved(AstNode* node); |
| 293 AstNode* LoadClosure(PrimaryNode* primary); |
| 292 AstNode* CallGetter(intptr_t token_index, | 294 AstNode* CallGetter(intptr_t token_index, |
| 293 AstNode* object, | 295 AstNode* object, |
| 294 const String& name); | 296 const String& name); |
| 295 | 297 |
| 296 AstNode* ParseAssertStatement(); | 298 AstNode* ParseAssertStatement(); |
| 297 AstNode* ParseJump(String* label_name); | 299 AstNode* ParseJump(String* label_name); |
| 298 AstNode* ParseIfStatement(String* label_name); | 300 AstNode* ParseIfStatement(String* label_name); |
| 299 AstNode* ParseWhileStatement(String* label_name); | 301 AstNode* ParseWhileStatement(String* label_name); |
| 300 AstNode* ParseDoWhileStatement(String* label_name); | 302 AstNode* ParseDoWhileStatement(String* label_name); |
| 301 AstNode* ParseForStatement(String* label_name); | 303 AstNode* ParseForStatement(String* label_name); |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 // code at all points in the try block where an exit from the block is | 461 // code at all points in the try block where an exit from the block is |
| 460 // done using 'return', 'break' or 'continue' statements. | 462 // done using 'return', 'break' or 'continue' statements. |
| 461 TryBlocks* try_blocks_list_; | 463 TryBlocks* try_blocks_list_; |
| 462 | 464 |
| 463 DISALLOW_COPY_AND_ASSIGN(Parser); | 465 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 464 }; | 466 }; |
| 465 | 467 |
| 466 } // namespace dart | 468 } // namespace dart |
| 467 | 469 |
| 468 #endif // VM_PARSER_H_ | 470 #endif // VM_PARSER_H_ |
| OLD | NEW |