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

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

Issue 8380020: Refactor the dart api a bit: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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 | « runtime/vm/isolate_test.cc ('k') | 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // Support for parsing of scripts. 181 // Support for parsing of scripts.
182 void ParseTopLevel(); 182 void ParseTopLevel();
183 void ParseClassDefinition(GrowableArray<const Class*>* classes); 183 void ParseClassDefinition(GrowableArray<const Class*>* classes);
184 void ParseInterfaceDefinition(GrowableArray<const Class*>* classes); 184 void ParseInterfaceDefinition(GrowableArray<const Class*>* classes);
185 void ParseFunctionTypeAlias(GrowableArray<const Class*>* classes); 185 void ParseFunctionTypeAlias(GrowableArray<const Class*>* classes);
186 void ParseTopLevelVariable(TopLevel* top_level); 186 void ParseTopLevelVariable(TopLevel* top_level);
187 void ParseTopLevelFunction(TopLevel* top_level); 187 void ParseTopLevelFunction(TopLevel* top_level);
188 void ParseTopLevelAccessor(TopLevel* top_level); 188 void ParseTopLevelAccessor(TopLevel* top_level);
189 189
190 // Support for parsing libraries. 190 // Support for parsing libraries.
191 Dart_Result CallLibraryTagHandler(Dart_LibraryTag tag, 191 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag,
192 intptr_t token_pos, 192 intptr_t token_pos,
193 const String& url); 193 const String& url);
194 void ParseLibraryDefinition(); 194 void ParseLibraryDefinition();
195 void ParseLibraryName(); 195 void ParseLibraryName();
196 void ParseLibraryImport(); 196 void ParseLibraryImport();
197 void ParseLibraryInclude(); 197 void ParseLibraryInclude();
198 198
199 bool ResolveTypeFromClass(intptr_t type_pos, const Class& cls, Type* type); 199 bool ResolveTypeFromClass(intptr_t type_pos, const Class& cls, Type* type);
200 enum TypeResolution { 200 enum TypeResolution {
201 kDoNotResolve, // Type resolution is postponed. 201 kDoNotResolve, // Type resolution is postponed.
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 TryBlocks* try_blocks_list_; 440 TryBlocks* try_blocks_list_;
441 441
442 char error_msg_[kErrorBuflen]; 442 char error_msg_[kErrorBuflen];
443 443
444 DISALLOW_COPY_AND_ASSIGN(Parser); 444 DISALLOW_COPY_AND_ASSIGN(Parser);
445 }; 445 };
446 446
447 } // namespace dart 447 } // namespace dart
448 448
449 #endif // VM_PARSER_H_ 449 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate_test.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698