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

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

Issue 10928121: Support new library/import syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 "vm/ast.h" 10 #include "vm/ast.h"
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 void ParseTopLevelVariable(TopLevel* top_level); 286 void ParseTopLevelVariable(TopLevel* top_level);
287 void ParseTopLevelFunction(TopLevel* top_level); 287 void ParseTopLevelFunction(TopLevel* top_level);
288 void ParseTopLevelAccessor(TopLevel* top_level); 288 void ParseTopLevelAccessor(TopLevel* top_level);
289 289
290 // Support for parsing libraries. 290 // Support for parsing libraries.
291 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag, 291 Dart_Handle CallLibraryTagHandler(Dart_LibraryTag tag,
292 intptr_t token_pos, 292 intptr_t token_pos,
293 const String& url); 293 const String& url);
294 void ParseLibraryDefinition(); 294 void ParseLibraryDefinition();
295 void ParseLibraryName(); 295 void ParseLibraryName();
296 void ParseLibraryImport(); 296 void ParseLibraryImportExport();
297 void ParseLibraryInclude(); 297 void ParseLibraryPart();
298 void ParseLibraryResource(); 298 void ParseLibraryNameObsoleteSyntax();
299 void ParseLibraryImportObsoleteSyntax();
300 void ParseLibraryIncludeObsoleteSyntax();
301 void ParseLibraryResourceObsoleteSyntax();
299 302
300 void ResolveTypeFromClass(const Class& cls, 303 void ResolveTypeFromClass(const Class& cls,
301 ClassFinalizer::FinalizationKind finalization, 304 ClassFinalizer::FinalizationKind finalization,
302 AbstractType* type); 305 AbstractType* type);
303 RawAbstractType* ParseType(ClassFinalizer::FinalizationKind finalization); 306 RawAbstractType* ParseType(ClassFinalizer::FinalizationKind finalization);
304 void ParseTypeParameters(const Class& cls); 307 void ParseTypeParameters(const Class& cls);
305 RawAbstractTypeArguments* ParseTypeArguments( 308 RawAbstractTypeArguments* ParseTypeArguments(
306 Error* malformed_error, 309 Error* malformed_error,
307 ClassFinalizer::FinalizationKind finalization); 310 ClassFinalizer::FinalizationKind finalization);
308 void ParseQualIdent(QualIdent* qual_ident); 311 void ParseQualIdent(QualIdent* qual_ident);
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 607
605 // Allocate temporary only once per function. 608 // Allocate temporary only once per function.
606 LocalVariable* expression_temp_; 609 LocalVariable* expression_temp_;
607 610
608 DISALLOW_COPY_AND_ASSIGN(Parser); 611 DISALLOW_COPY_AND_ASSIGN(Parser);
609 }; 612 };
610 613
611 } // namespace dart 614 } // namespace dart
612 615
613 #endif // VM_PARSER_H_ 616 #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