Index: src/parsing/preparser.h |
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h |
index 16eeab440ad1042456913a2e14a1f1979c2017cf..7278b6319e43aba825d86fc03656d8bf6f1caa1d 100644 |
--- a/src/parsing/preparser.h |
+++ b/src/parsing/preparser.h |
@@ -987,6 +987,8 @@ class PreParserTraits { |
inline PreParserExpression RewriteAwaitExpression(PreParserExpression value, |
int pos); |
+ V8_INLINE ZoneList<typename Type::ExpressionClassifier::Error>* |
+ GetReportedErrorList() const; |
V8_INLINE Zone* zone() const; |
V8_INLINE ZoneList<PreParserExpression>* GetNonPatternList() const; |
@@ -1214,13 +1216,19 @@ PreParserExpression PreParserTraits::RewriteAwaitExpression( |
return value; |
} |
-Zone* PreParserTraits::zone() const { |
- return pre_parser_->function_state_->scope()->zone(); |
+ZoneList<PreParserExpression>* PreParserTraits::GetNonPatternList() const { |
+ return pre_parser_->function_state_->non_patterns_to_rewrite(); |
} |
-ZoneList<PreParserExpression>* PreParserTraits::GetNonPatternList() const { |
- return pre_parser_->function_state_->non_patterns_to_rewrite(); |
+ZoneList<typename PreParserTraits::Type::ExpressionClassifier::Error>* |
+PreParserTraits::GetReportedErrorList() const { |
+ return pre_parser_->function_state_->GetReportedErrorList(); |
+} |
+ |
+ |
+Zone* PreParserTraits::zone() const { |
+ return pre_parser_->function_state_->scope()->zone(); |
} |