Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index c9a77aa527c86c656f95fcad188da91db096053a..202c0b5b0f306feb1835609d2dfd8937ceaae086 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -419,6 +419,7 @@ class ParserTraits { |
// Return types for traversing functions. |
typedef Handle<String> Identifier; |
typedef v8::internal::Expression* Expression; |
+ typedef Yield* YieldExpression; |
typedef v8::internal::FunctionLiteral* FunctionLiteral; |
typedef v8::internal::Literal* Literal; |
typedef ObjectLiteral::Property* ObjectLiteralProperty; |
@@ -552,7 +553,6 @@ class ParserTraits { |
int function_token_position, |
FunctionLiteral::FunctionType type, |
bool* ok); |
- Expression* ParseYieldExpression(bool* ok); |
Expression* ParseConditionalExpression(bool accept_IN, bool* ok); |
private: |
@@ -696,7 +696,6 @@ class Parser : public ParserBase<ParserTraits> { |
// Support for hamony block scoped bindings. |
Block* ParseScopedBlock(ZoneStringList* labels, bool* ok); |
- Expression* ParseYieldExpression(bool* ok); |
Expression* ParseConditionalExpression(bool accept_IN, bool* ok); |
Expression* ParseBinaryExpression(int prec, bool accept_IN, bool* ok); |
Expression* ParseUnaryExpression(bool* ok); |