Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index 3e93f3aa682612ed19cc2377039d8ff7b75ac1d5..c3d2a70658762ae15a2e1fed9a4698855e496025 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -418,6 +418,10 @@ class ParserTraits { |
fni->PushLiteralName(id); |
} |
void PushPropertyName(FuncNameInferrer* fni, Expression* expression); |
+ static void InferFunctionName(FuncNameInferrer* fni, |
+ FunctionLiteral* func_to_infer) { |
+ fni->AddFunction(func_to_infer); |
+ } |
static void CheckFunctionLiteralInsideTopLevelObjectLiteral( |
Scope* scope, Expression* value, bool* has_function) { |
@@ -528,7 +532,8 @@ class ParserTraits { |
const AstRawString* GetNextSymbol(Scanner* scanner); |
Expression* ThisExpression(Scope* scope, |
- AstNodeFactory<AstConstructionVisitor>* factory); |
+ AstNodeFactory<AstConstructionVisitor>* factory, |
+ int pos = RelocInfo::kNoPosition); |
Literal* ExpressionFromLiteral( |
Token::Value token, int pos, Scanner* scanner, |
AstNodeFactory<AstConstructionVisitor>* factory); |