Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index 40886f669d828eca47abfa81a808bd310cec3c63..42bc758fa8a33d02e1f5857755c6f7e02ec0328a 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -419,6 +419,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) { |
@@ -548,11 +557,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, |