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

Unified Diff: runtime/vm/parser.h

Issue 1410383020: Eliminate all but one top-level class per library. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Address Review Comments Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.h
diff --git a/runtime/vm/parser.h b/runtime/vm/parser.h
index 433a0c47233c7e1eebe23fbe05f2303b6a686352..98bb8a06409208fefc7407e7ff9a8f6d3ed9562d 100644
--- a/runtime/vm/parser.h
+++ b/runtime/vm/parser.h
@@ -205,7 +205,7 @@ class Parser : public ValueObject {
// Parse and evaluate the metadata expressions at token_pos in the
// class namespace of class cls (which can be the implicit toplevel
// class if the metadata is at the top-level).
- static RawObject* ParseMetadata(const Class& cls, intptr_t token_pos);
+ static RawObject* ParseMetadata(const Field& meta_data);
// Build a function containing the initializer expression of the
// given static field.
@@ -399,22 +399,25 @@ class Parser : public ValueObject {
// Support for parsing of scripts.
void ParseTopLevel();
void ParseEnumDeclaration(const GrowableObjectArray& pending_classes,
- const Class& toplevel_class,
+ const Object& tl_owner,
intptr_t metadata_pos);
void ParseEnumDefinition(const Class& cls);
void ParseClassDeclaration(const GrowableObjectArray& pending_classes,
- const Class& toplevel_class,
+ const Object& tl_owner,
intptr_t metadata_pos);
void ParseClassDefinition(const Class& cls);
void ParseMixinAppAlias(const GrowableObjectArray& pending_classes,
- const Class& toplevel_class,
+ const Object& tl_owner,
intptr_t metadata_pos);
void ParseTypedef(const GrowableObjectArray& pending_classes,
- const Class& toplevel_class,
+ const Object& tl_owner,
intptr_t metadata_pos);
- void ParseTopLevelVariable(TopLevel* top_level, intptr_t metadata_pos);
- void ParseTopLevelFunction(TopLevel* top_level, intptr_t metadata_pos);
- void ParseTopLevelAccessor(TopLevel* top_level, intptr_t metadata_pos);
+ void ParseTopLevelVariable(TopLevel* top_level,
+ const Object& owner, intptr_t metadata_pos);
+ void ParseTopLevelFunction(TopLevel* top_level,
+ const Object& owner, intptr_t metadata_pos);
+ void ParseTopLevelAccessor(TopLevel* top_level,
+ const Object& owner, intptr_t metadata_pos);
RawArray* EvaluateMetadata();
RawFunction::AsyncModifier ParseFunctionModifier();
@@ -424,9 +427,10 @@ class Parser : public ValueObject {
intptr_t token_pos,
const String& url);
void ParseIdentList(GrowableObjectArray* names);
- void ParseLibraryDefinition();
+ void ParseLibraryDefinition(const Object& tl_owner);
void ParseLibraryName();
- void ParseLibraryImportExport(intptr_t metadata_pos);
+ void ParseLibraryImportExport(const Object& tl_owner,
+ intptr_t metadata_pos);
void ParseLibraryPart();
void ParsePartHeader();
void ParseLibraryNameObsoleteSyntax();
« 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