| 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 const String& type_parameter_name); | 369 const String& type_parameter_name); |
| 370 bool ResolveIdentInLocalScope(intptr_t ident_pos, | 370 bool ResolveIdentInLocalScope(intptr_t ident_pos, |
| 371 const String &ident, | 371 const String &ident, |
| 372 AstNode** node); | 372 AstNode** node); |
| 373 static const bool kResolveLocally = true; | 373 static const bool kResolveLocally = true; |
| 374 static const bool kResolveIncludingImports = false; | 374 static const bool kResolveIncludingImports = false; |
| 375 AstNode* ResolveIdentInLibraryScope(const Library& lib, | 375 AstNode* ResolveIdentInLibraryScope(const Library& lib, |
| 376 const QualIdent& qual_ident, | 376 const QualIdent& qual_ident, |
| 377 bool resolve_locally); | 377 bool resolve_locally); |
| 378 AstNode* ResolveVarOrField(intptr_t ident_pos, const String &ident); | 378 AstNode* ResolveVarOrField(intptr_t ident_pos, const String &ident); |
| 379 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, |
| 380 Token::Kind binary_op, |
| 381 AstNode* lhs, |
| 382 AstNode* rhs); |
| 379 AstNode* ExpandAssignableOp(intptr_t op_pos, | 383 AstNode* ExpandAssignableOp(intptr_t op_pos, |
| 380 Token::Kind assignment_op, | 384 Token::Kind assignment_op, |
| 381 AstNode* lhs, | 385 AstNode* lhs, |
| 382 AstNode* rhs); | 386 AstNode* rhs); |
| 383 AstNode* AsSideEffectFreeNode(AstNode* node); | 387 AstNode* AsSideEffectFreeNode(AstNode* node); |
| 384 LocalVariable* CreateTempConstVariable(intptr_t token_index, | 388 LocalVariable* CreateTempConstVariable(intptr_t token_index, |
| 385 intptr_t token_id, | 389 intptr_t token_id, |
| 386 const char* s); | 390 const char* s); |
| 387 | 391 |
| 388 static bool IsAssignableExpr(AstNode* expr); | 392 static bool IsAssignableExpr(AstNode* expr); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 TryBlocks* try_blocks_list_; | 440 TryBlocks* try_blocks_list_; |
| 437 | 441 |
| 438 char error_msg_[kErrorBuflen]; | 442 char error_msg_[kErrorBuflen]; |
| 439 | 443 |
| 440 DISALLOW_COPY_AND_ASSIGN(Parser); | 444 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 441 }; | 445 }; |
| 442 | 446 |
| 443 } // namespace dart | 447 } // namespace dart |
| 444 | 448 |
| 445 #endif // VM_PARSER_H_ | 449 #endif // VM_PARSER_H_ |
| OLD | NEW |