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

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

Issue 1087463005: Simplification in resolving classes (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 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 "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 static const bool kResolveIncludingImports = false; 727 static const bool kResolveIncludingImports = false;
728 728
729 // Resolve a primary identifier in the library or prefix scope and 729 // Resolve a primary identifier in the library or prefix scope and
730 // generate the corresponding AstNode. 730 // generate the corresponding AstNode.
731 AstNode* ResolveIdentInCurrentLibraryScope(intptr_t ident_pos, 731 AstNode* ResolveIdentInCurrentLibraryScope(intptr_t ident_pos,
732 const String& ident); 732 const String& ident);
733 AstNode* ResolveIdentInPrefixScope(intptr_t ident_pos, 733 AstNode* ResolveIdentInPrefixScope(intptr_t ident_pos,
734 const LibraryPrefix& prefix, 734 const LibraryPrefix& prefix,
735 const String& ident); 735 const String& ident);
736 736
737 // Find class with the given name in the library or prefix scope.
738 RawClass* ResolveClassInCurrentLibraryScope(const String& name);
739 RawClass* ResolveClassInPrefixScope(const LibraryPrefix& prefix,
740 const String& name);
741
742 AstNode* ResolveIdent(intptr_t ident_pos, 737 AstNode* ResolveIdent(intptr_t ident_pos,
743 const String& ident, 738 const String& ident,
744 bool allow_closure_names); 739 bool allow_closure_names);
745 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident); 740 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident);
746 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, 741 AstNode* OptimizeBinaryOpNode(intptr_t op_pos,
747 Token::Kind binary_op, 742 Token::Kind binary_op,
748 AstNode* lhs, 743 AstNode* lhs,
749 AstNode* rhs); 744 AstNode* rhs);
750 AstNode* ExpandAssignableOp(intptr_t op_pos, 745 AstNode* ExpandAssignableOp(intptr_t op_pos,
751 Token::Kind assignment_op, 746 Token::Kind assignment_op,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 857
863 // Indentation of parser trace. 858 // Indentation of parser trace.
864 intptr_t trace_indent_; 859 intptr_t trace_indent_;
865 860
866 DISALLOW_COPY_AND_ASSIGN(Parser); 861 DISALLOW_COPY_AND_ASSIGN(Parser);
867 }; 862 };
868 863
869 } // namespace dart 864 } // namespace dart
870 865
871 #endif // VM_PARSER_H_ 866 #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