Chromium Code Reviews| 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 475 void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name); | 475 void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name); |
| 476 RawClass* TypeParametersScopeClass() const; | 476 RawClass* TypeParametersScopeClass() const; |
| 477 const Type* ReceiverType(intptr_t type_pos) const; | 477 const Type* ReceiverType(intptr_t type_pos) const; |
| 478 bool IsInstantiatorRequired() const; | 478 bool IsInstantiatorRequired() const; |
| 479 bool IsDefinedInLexicalScope(const String& ident); | 479 bool IsDefinedInLexicalScope(const String& ident); |
| 480 bool ResolveIdentInLocalScope(intptr_t ident_pos, | 480 bool ResolveIdentInLocalScope(intptr_t ident_pos, |
| 481 const String &ident, | 481 const String &ident, |
| 482 AstNode** node); | 482 AstNode** node); |
| 483 static const bool kResolveLocally = true; | 483 static const bool kResolveLocally = true; |
| 484 static const bool kResolveIncludingImports = false; | 484 static const bool kResolveIncludingImports = false; |
| 485 AstNode* ResolveIdentInLibraryScope(const Library& lib, | 485 AstNode* ResolveIdentInPrefixScope(intptr_t ident_pos, |
| 486 const QualIdent& qual_ident, | 486 const LibraryPrefix& prefix, |
| 487 bool resolve_locally); | 487 const String& ident); |
| 488 AstNode* ResolveIdentInLibraryPrefixScope(const LibraryPrefix& lib_prefix, | 488 RawClass* ResolveClassInPrefixScope(intptr_t ident_pos, |
| 489 const QualIdent& qual_ident); | 489 const LibraryPrefix& prefix, |
| 490 const String& name); | |
| 491 RawClass* ResolveClassInCurrentLibraryScope(intptr_t ident_pos, | |
| 492 const String& name); | |
| 493 RawObject* ResolveNameInCurrentLibraryScope(intptr_t ident_pos, | |
| 494 const String& ident); | |
| 495 RawObject* ResolveNameInPrefixScope(intptr_t ident_pos, | |
| 496 const LibraryPrefix& prefix, | |
| 497 const String& name); | |
| 498 AstNode* ResolveIdentInCurrentLibraryScope(intptr_t ident_pos, | |
| 499 const String& ident); | |
|
regis
2012/08/17 20:23:07
Reorder these 6 methods and group them in pairs.
E
hausner
2012/08/17 21:05:52
Done.
| |
| 490 AstNode* ResolveIdent(intptr_t ident_pos, | 500 AstNode* ResolveIdent(intptr_t ident_pos, |
| 491 const String& ident, | 501 const String& ident, |
| 492 bool allow_closure_names); | 502 bool allow_closure_names); |
| 493 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident); | 503 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident); |
| 494 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, | 504 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, |
| 495 Token::Kind binary_op, | 505 Token::Kind binary_op, |
| 496 AstNode* lhs, | 506 AstNode* lhs, |
| 497 AstNode* rhs); | 507 AstNode* rhs); |
| 498 AstNode* ExpandAssignableOp(intptr_t op_pos, | 508 AstNode* ExpandAssignableOp(intptr_t op_pos, |
| 499 Token::Kind assignment_op, | 509 Token::Kind assignment_op, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 571 | 581 |
| 572 // Allocate temporary only once per function. | 582 // Allocate temporary only once per function. |
| 573 LocalVariable* expression_temp_; | 583 LocalVariable* expression_temp_; |
| 574 | 584 |
| 575 DISALLOW_COPY_AND_ASSIGN(Parser); | 585 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 576 }; | 586 }; |
| 577 | 587 |
| 578 } // namespace dart | 588 } // namespace dart |
| 579 | 589 |
| 580 #endif // VM_PARSER_H_ | 590 #endif // VM_PARSER_H_ |
| OLD | NEW |