| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 bool ResolveIdentInLocalScope(intptr_t ident_pos, | 445 bool ResolveIdentInLocalScope(intptr_t ident_pos, |
| 446 const String &ident, | 446 const String &ident, |
| 447 AstNode** node); | 447 AstNode** node); |
| 448 static const bool kResolveLocally = true; | 448 static const bool kResolveLocally = true; |
| 449 static const bool kResolveIncludingImports = false; | 449 static const bool kResolveIncludingImports = false; |
| 450 AstNode* ResolveIdentInLibraryScope(const Library& lib, | 450 AstNode* ResolveIdentInLibraryScope(const Library& lib, |
| 451 const QualIdent& qual_ident, | 451 const QualIdent& qual_ident, |
| 452 bool resolve_locally); | 452 bool resolve_locally); |
| 453 AstNode* ResolveIdentInLibraryPrefixScope(const LibraryPrefix& lib_prefix, | 453 AstNode* ResolveIdentInLibraryPrefixScope(const LibraryPrefix& lib_prefix, |
| 454 const QualIdent& qual_ident); | 454 const QualIdent& qual_ident); |
| 455 AstNode* ResolveVarOrField(intptr_t ident_pos, const String& ident); | 455 AstNode* ResolveIdent(intptr_t ident_pos, |
| 456 const String& ident, |
| 457 bool allow_closure_names); |
| 456 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident); | 458 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident); |
| 457 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, | 459 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, |
| 458 Token::Kind binary_op, | 460 Token::Kind binary_op, |
| 459 AstNode* lhs, | 461 AstNode* lhs, |
| 460 AstNode* rhs); | 462 AstNode* rhs); |
| 461 AstNode* ExpandAssignableOp(intptr_t op_pos, | 463 AstNode* ExpandAssignableOp(intptr_t op_pos, |
| 462 Token::Kind assignment_op, | 464 Token::Kind assignment_op, |
| 463 AstNode* lhs, | 465 AstNode* lhs, |
| 464 AstNode* rhs); | 466 AstNode* rhs); |
| 465 AstNode* PrepareCompoundAssignmentNodes(AstNode** expr); | 467 AstNode* PrepareCompoundAssignmentNodes(AstNode** expr); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 | 536 |
| 535 // Allocate temporary only once per function. | 537 // Allocate temporary only once per function. |
| 536 LocalVariable* expression_temp_; | 538 LocalVariable* expression_temp_; |
| 537 | 539 |
| 538 DISALLOW_COPY_AND_ASSIGN(Parser); | 540 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 539 }; | 541 }; |
| 540 | 542 |
| 541 } // namespace dart | 543 } // namespace dart |
| 542 | 544 |
| 543 #endif // VM_PARSER_H_ | 545 #endif // VM_PARSER_H_ |
| OLD | NEW |