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

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

Issue 217543004: VM: Evaluate metadata on a class in the scope of its library not the scope of the class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: comments Created 6 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 | « runtime/vm/object.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) 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 intptr_t field_ref_pos); 327 intptr_t field_ref_pos);
328 RawObject* EvaluateConstConstructorCall(const Class& type_class, 328 RawObject* EvaluateConstConstructorCall(const Class& type_class,
329 const TypeArguments& type_arguments, 329 const TypeArguments& type_arguments,
330 const Function& constructor, 330 const Function& constructor,
331 ArgumentListNode* arguments); 331 ArgumentListNode* arguments);
332 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); 332 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr);
333 333
334 // Support for parsing of scripts. 334 // Support for parsing of scripts.
335 void ParseTopLevel(); 335 void ParseTopLevel();
336 void ParseClassDeclaration(const GrowableObjectArray& pending_classes, 336 void ParseClassDeclaration(const GrowableObjectArray& pending_classes,
337 const Class& toplevel_class,
337 intptr_t metadata_pos); 338 intptr_t metadata_pos);
338 void ParseClassDefinition(const Class& cls); 339 void ParseClassDefinition(const Class& cls);
339 void ParseMixinAppAlias(const GrowableObjectArray& pending_classes, 340 void ParseMixinAppAlias(const GrowableObjectArray& pending_classes,
341 const Class& toplevel_class,
340 intptr_t metadata_pos); 342 intptr_t metadata_pos);
341 void ParseTypedef(const GrowableObjectArray& pending_classes, 343 void ParseTypedef(const GrowableObjectArray& pending_classes,
344 const Class& toplevel_class,
342 intptr_t metadata_pos); 345 intptr_t metadata_pos);
343 void ParseTopLevelVariable(TopLevel* top_level, intptr_t metadata_pos); 346 void ParseTopLevelVariable(TopLevel* top_level, intptr_t metadata_pos);
344 void ParseTopLevelFunction(TopLevel* top_level, intptr_t metadata_pos); 347 void ParseTopLevelFunction(TopLevel* top_level, intptr_t metadata_pos);
345 void ParseTopLevelAccessor(TopLevel* top_level, intptr_t metadata_pos); 348 void ParseTopLevelAccessor(TopLevel* top_level, intptr_t metadata_pos);
346 RawArray* EvaluateMetadata(); 349 RawArray* EvaluateMetadata();
347 350
348 // Support for parsing libraries. 351 // Support for parsing libraries.
349 RawObject* CallLibraryTagHandler(Dart_LibraryTag tag, 352 RawObject* CallLibraryTagHandler(Dart_LibraryTag tag,
350 intptr_t token_pos, 353 intptr_t token_pos,
351 const String& url); 354 const String& url);
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 intptr_t last_used_try_index_; 716 intptr_t last_used_try_index_;
714 717
715 bool unregister_pending_function_; 718 bool unregister_pending_function_;
716 719
717 DISALLOW_COPY_AND_ASSIGN(Parser); 720 DISALLOW_COPY_AND_ASSIGN(Parser);
718 }; 721 };
719 722
720 } // namespace dart 723 } // namespace dart
721 724
722 #endif // VM_PARSER_H_ 725 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698