Chromium Code Reviews| Index: runtime/vm/parser.h |
| =================================================================== |
| --- runtime/vm/parser.h (revision 23046) |
| +++ runtime/vm/parser.h (working copy) |
| @@ -143,7 +143,7 @@ |
| class Parser : public ValueObject { |
| public: |
| - Parser(const Script& script, const Library& library); |
| + Parser(const Script& script, const Library& library, intptr_t token_pos); |
|
Ivan Posva
2013/05/23 05:10:37
Do these constructors need to be public?
siva
2013/05/23 20:19:46
Made them private.
On 2013/05/23 05:10:37, Ivan P
|
| Parser(const Script& script, ParsedFunction* function, intptr_t token_pos); |
| // Parse the top level of a whole script file and register declared classes |
| @@ -151,6 +151,9 @@ |
| static void ParseCompilationUnit(const Library& library, |
| const Script& script); |
| + // Parse top level of a class and register all functions/fields. |
| + static void ParseClass(const Class& cls); |
| + |
| static void ParseFunction(ParsedFunction* parsed_function); |
| // Format and print a message with source location. |
| @@ -332,7 +335,8 @@ |
| // Support for parsing of scripts. |
| void ParseTopLevel(); |
| - void ParseClassDefinition(const GrowableObjectArray& pending_classes); |
| + void ParseClassDeclaration(const GrowableObjectArray& pending_classes); |
| + void ParseClassDefinition(const Class& cls); |
| void ParseMixinTypedef(const GrowableObjectArray& pending_classes); |
| void ParseTypedef(const GrowableObjectArray& pending_classes); |
| void ParseTopLevelVariable(TopLevel* top_level); |