Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index bb8cb52b75068f0aee6941880fd7d1ecfe58bd29..30e4c4581d05de72fb8408e6d022f24df340981e 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -382,9 +382,18 @@ class TargetScope BASE_EMBEDDED { |
// ---------------------------------------------------------------------------- |
// Implementation of Parser |
+bool ParserTraits::IsEval(const AstRawString* identifier) const { |
+ return identifier == parser_->ast_value_factory()->eval_string(); |
+} |
+ |
+ |
+bool ParserTraits::IsArguments(const AstRawString* identifier) const { |
+ return identifier == parser_->ast_value_factory()->arguments_string(); |
+} |
+ |
+ |
bool ParserTraits::IsEvalOrArguments(const AstRawString* identifier) const { |
- return identifier == parser_->ast_value_factory()->eval_string() || |
- identifier == parser_->ast_value_factory()->arguments_string(); |
+ return IsEval(identifier) || IsArguments(identifier); |
} |