| Index: src/parser.h
|
| diff --git a/src/parser.h b/src/parser.h
|
| index 300cc03a917f64717dc58ac844185b4f4674b53f..e461a99d84cfdcd6a13a4a9c2d81ab5fa1647581 100644
|
| --- a/src/parser.h
|
| +++ b/src/parser.h
|
| @@ -417,6 +417,15 @@ class ParserTraits {
|
| return string->AsArrayIndex(index);
|
| }
|
|
|
| + bool IsConstructorProperty(ObjectLiteral::Property* property) {
|
| + return property->key()->raw_value()->EqualsString(
|
| + ast_value_factory()->constructor_string());
|
| + }
|
| +
|
| + static Expression* GetPropertyValue(ObjectLiteral::Property* property) {
|
| + return property->value();
|
| + }
|
| +
|
| // Functions for encapsulating the differences between parsing and preparsing;
|
| // operations interleaved with the recursive descent.
|
| static void PushLiteralName(FuncNameInferrer* fni, const AstRawString* id) {
|
| @@ -546,11 +555,11 @@ class ParserTraits {
|
| Expression* SuperReference(Scope* scope,
|
| AstNodeFactory<AstConstructionVisitor>* factory,
|
| int pos = RelocInfo::kNoPosition);
|
| - Expression* ClassLiteral(const AstRawString* name, Expression* extends,
|
| - Expression* constructor,
|
| - ZoneList<ObjectLiteral::Property*>* properties,
|
| - int pos,
|
| - AstNodeFactory<AstConstructionVisitor>* factory);
|
| + Expression* ClassExpression(const AstRawString* name, Expression* extends,
|
| + Expression* constructor,
|
| + ZoneList<ObjectLiteral::Property*>* properties,
|
| + int pos,
|
| + AstNodeFactory<AstConstructionVisitor>* factory);
|
|
|
| Literal* ExpressionFromLiteral(
|
| Token::Value token, int pos, Scanner* scanner,
|
|
|