Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index 4b526f5f1f3c6f039ae730c70b07eccfa8a20444..e86251b8ef16978acdd3ce7fb8ebe8af881d73b9 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -172,6 +172,15 @@ class ParserBase : public Traits { |
PARSE_EAGERLY |
}; |
+ enum VariableDeclarationContext { |
+ kStatementListItem, |
+ kStatement, |
+ kForStatement |
+ }; |
+ |
+ // If a list of variable declarations includes any initializers. |
+ enum VariableDeclarationProperties { kHasInitializers, kHasNoInitializers }; |
+ |
class Checkpoint; |
class ObjectLiteralCheckerBase; |
@@ -1195,7 +1204,6 @@ class PreParserTraits { |
typedef void GeneratorVariable; |
typedef int AstProperties; |
- typedef Vector<PreParserIdentifier> ParameterIdentifierVector; |
// Return types for traversing functions. |
typedef PreParserIdentifier Identifier; |
@@ -1557,18 +1565,6 @@ class PreParser : public ParserBase<PreParserTraits> { |
// are either being counted in the preparser data, or is important |
// to throw the correct syntax error exceptions. |
- enum VariableDeclarationContext { |
- kSourceElement, |
- kStatement, |
- kForStatement |
- }; |
- |
- // If a list of variable declarations includes any initializers. |
- enum VariableDeclarationProperties { |
- kHasInitializers, |
- kHasNoInitializers |
- }; |
- |
// All ParseXXX functions take as the last argument an *ok parameter |
// which is set to false if parsing failed; it is unchanged otherwise. |
// By making the 'exception handling' explicit, we are forced to check |