Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(456)

Side by Side Diff: runtime/vm/parser.h

Issue 18801005: Small cleanup in parser (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "lib/invocation_mirror.h" 10 #include "lib/invocation_mirror.h"
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 AstNode* GenerateStaticFieldLookup(const Field& field, 541 AstNode* GenerateStaticFieldLookup(const Field& field,
542 intptr_t ident_pos); 542 intptr_t ident_pos);
543 AstNode* ParseStaticFieldAccess(const Class& cls, 543 AstNode* ParseStaticFieldAccess(const Class& cls,
544 const String& field_name, 544 const String& field_name,
545 intptr_t ident_pos, 545 intptr_t ident_pos,
546 bool consume_cascades); 546 bool consume_cascades);
547 547
548 LocalVariable* LookupLocalScope(const String& ident); 548 LocalVariable* LookupLocalScope(const String& ident);
549 void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name); 549 void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name);
550 bool ParsingStaticMember() const; 550 bool ParsingStaticMember() const;
551 const Type* ReceiverType(intptr_t type_pos) const; 551 const Type* ReceiverType() const;
552 bool IsInstantiatorRequired() const; 552 bool IsInstantiatorRequired() const;
553 bool ResolveIdentInLocalScope(intptr_t ident_pos, 553 bool ResolveIdentInLocalScope(intptr_t ident_pos,
554 const String &ident, 554 const String &ident,
555 AstNode** node); 555 AstNode** node);
556 static const bool kResolveLocally = true; 556 static const bool kResolveLocally = true;
557 static const bool kResolveIncludingImports = false; 557 static const bool kResolveIncludingImports = false;
558 558
559 // Resolve a primary identifier in the library or prefix scope and 559 // Resolve a primary identifier in the library or prefix scope and
560 // generate the corresponding AstNode. 560 // generate the corresponding AstNode.
561 AstNode* ResolveIdentInCurrentLibraryScope(intptr_t ident_pos, 561 AstNode* ResolveIdentInCurrentLibraryScope(intptr_t ident_pos,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 // code at all points in the try block where an exit from the block is 677 // code at all points in the try block where an exit from the block is
678 // done using 'return', 'break' or 'continue' statements. 678 // done using 'return', 'break' or 'continue' statements.
679 TryBlocks* try_blocks_list_; 679 TryBlocks* try_blocks_list_;
680 680
681 DISALLOW_COPY_AND_ASSIGN(Parser); 681 DISALLOW_COPY_AND_ASSIGN(Parser);
682 }; 682 };
683 683
684 } // namespace dart 684 } // namespace dart
685 685
686 #endif // VM_PARSER_H_ 686 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698