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

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

Issue 23437007: Remember metadata positions for mixin and function typedefs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 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 "lib/invocation_mirror.h" 10 #include "lib/invocation_mirror.h"
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 const AbstractTypeArguments& type_arguments, 330 const AbstractTypeArguments& type_arguments,
331 const Function& constructor, 331 const Function& constructor,
332 ArgumentListNode* arguments); 332 ArgumentListNode* arguments);
333 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); 333 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr);
334 334
335 // Support for parsing of scripts. 335 // Support for parsing of scripts.
336 void ParseTopLevel(); 336 void ParseTopLevel();
337 void ParseClassDeclaration(const GrowableObjectArray& pending_classes, 337 void ParseClassDeclaration(const GrowableObjectArray& pending_classes,
338 intptr_t metadata_pos); 338 intptr_t metadata_pos);
339 void ParseClassDefinition(const Class& cls); 339 void ParseClassDefinition(const Class& cls);
340 void ParseMixinTypedef(const GrowableObjectArray& pending_classes); 340 void ParseMixinTypedef(const GrowableObjectArray& pending_classes,
341 void ParseTypedef(const GrowableObjectArray& pending_classes); 341 intptr_t metadata_pos);
342 void ParseTypedef(const GrowableObjectArray& pending_classes,
343 intptr_t metadata_pos);
342 void ParseTopLevelVariable(TopLevel* top_level, intptr_t metadata_pos); 344 void ParseTopLevelVariable(TopLevel* top_level, intptr_t metadata_pos);
343 void ParseTopLevelFunction(TopLevel* top_level, intptr_t metadata_pos); 345 void ParseTopLevelFunction(TopLevel* top_level, intptr_t metadata_pos);
344 void ParseTopLevelAccessor(TopLevel* top_level, intptr_t metadata_pos); 346 void ParseTopLevelAccessor(TopLevel* top_level, intptr_t metadata_pos);
345 RawArray* EvaluateMetadata(); 347 RawArray* EvaluateMetadata();
346 348
347 // Support for parsing libraries. 349 // Support for parsing libraries.
348 RawObject* CallLibraryTagHandler(Dart_LibraryTag tag, 350 RawObject* CallLibraryTagHandler(Dart_LibraryTag tag,
349 intptr_t token_pos, 351 intptr_t token_pos,
350 const String& url); 352 const String& url);
351 void ParseIdentList(GrowableObjectArray* names); 353 void ParseIdentList(GrowableObjectArray* names);
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 intptr_t last_used_try_index_; 699 intptr_t last_used_try_index_;
698 700
699 bool unregister_pending_function_; 701 bool unregister_pending_function_;
700 702
701 DISALLOW_COPY_AND_ASSIGN(Parser); 703 DISALLOW_COPY_AND_ASSIGN(Parser);
702 }; 704 };
703 705
704 } // namespace dart 706 } // namespace dart
705 707
706 #endif // VM_PARSER_H_ 708 #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