| 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 const String& field_name, | 487 const String& field_name, |
| 488 intptr_t ident_pos, | 488 intptr_t ident_pos, |
| 489 bool consume_cascades); | 489 bool consume_cascades); |
| 490 | 490 |
| 491 LocalVariable* LookupLocalScope(const String& ident); | 491 LocalVariable* LookupLocalScope(const String& ident); |
| 492 bool IsFormalParameter(const String& ident, | 492 bool IsFormalParameter(const String& ident, |
| 493 Function* owner_function, | 493 Function* owner_function, |
| 494 LocalScope** owner_scope, | 494 LocalScope** owner_scope, |
| 495 intptr_t* local_index); | 495 intptr_t* local_index); |
| 496 void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name); | 496 void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name); |
| 497 RawClass* TypeParametersScopeClass() const; | 497 bool ParsingStaticMember() const; |
| 498 const Type* ReceiverType(intptr_t type_pos) const; | 498 const Type* ReceiverType(intptr_t type_pos) const; |
| 499 bool IsInstantiatorRequired() const; | 499 bool IsInstantiatorRequired() const; |
| 500 bool ResolveIdentInLocalScope(intptr_t ident_pos, | 500 bool ResolveIdentInLocalScope(intptr_t ident_pos, |
| 501 const String &ident, | 501 const String &ident, |
| 502 AstNode** node); | 502 AstNode** node); |
| 503 static const bool kResolveLocally = true; | 503 static const bool kResolveLocally = true; |
| 504 static const bool kResolveIncludingImports = false; | 504 static const bool kResolveIncludingImports = false; |
| 505 | 505 |
| 506 // Resolve a primary identifier in the libary or prefix scope and | 506 // Resolve a primary identifier in the libary or prefix scope and |
| 507 // generate the corresponding AstNode. | 507 // generate the corresponding AstNode. |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 | 611 |
| 612 // Allocate temporary only once per function. | 612 // Allocate temporary only once per function. |
| 613 LocalVariable* expression_temp_; | 613 LocalVariable* expression_temp_; |
| 614 | 614 |
| 615 DISALLOW_COPY_AND_ASSIGN(Parser); | 615 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 616 }; | 616 }; |
| 617 | 617 |
| 618 } // namespace dart | 618 } // namespace dart |
| 619 | 619 |
| 620 #endif // VM_PARSER_H_ | 620 #endif // VM_PARSER_H_ |
| OLD | NEW |