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

Side by Side Diff: vm/parser.h

Issue 9431038: Fix issue 732: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 10 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 | 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 "vm/ast.h" 10 #include "vm/ast.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 // Support for parsing libraries. 209 // Support for parsing libraries.
210 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag, 210 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag,
211 intptr_t token_pos, 211 intptr_t token_pos,
212 const String& url, 212 const String& url,
213 const Array& import_map); 213 const Array& import_map);
214 void ParseLibraryDefinition(); 214 void ParseLibraryDefinition();
215 void ParseLibraryName(); 215 void ParseLibraryName();
216 void ParseLibraryImport(); 216 void ParseLibraryImport();
217 void ParseLibraryInclude(); 217 void ParseLibraryInclude();
218 void ParseLibraryResource();
218 219
219 enum TypeResolution { 220 enum TypeResolution {
220 kIgnore, // Parsed type is ignored and replaced by Dynamic. 221 kIgnore, // Parsed type is ignored and replaced by Dynamic.
221 kDoNotResolve, // Type resolution is postponed. 222 kDoNotResolve, // Type resolution is postponed.
222 kCanResolve, // Type resolution is optional. 223 kCanResolve, // Type resolution is optional.
223 kMustResolve // Type resolution is required. 224 kMustResolve // Type resolution is required.
224 }; 225 };
225 void ResolveTypeFromClass(const Class& cls, 226 void ResolveTypeFromClass(const Class& cls,
226 TypeResolution type_resolution, 227 TypeResolution type_resolution,
227 AbstractType* type); 228 AbstractType* type);
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 // code at all points in the try block where an exit from the block is 459 // code at all points in the try block where an exit from the block is
459 // done using 'return', 'break' or 'continue' statements. 460 // done using 'return', 'break' or 'continue' statements.
460 TryBlocks* try_blocks_list_; 461 TryBlocks* try_blocks_list_;
461 462
462 DISALLOW_COPY_AND_ASSIGN(Parser); 463 DISALLOW_COPY_AND_ASSIGN(Parser);
463 }; 464 };
464 465
465 } // namespace dart 466 } // namespace dart
466 467
467 #endif // VM_PARSER_H_ 468 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698