Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1034)

Unified Diff: src/expression-classifier.h

Issue 1276273002: [es6] Fix parsing of expressions in parameter lists (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Whoops Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/preparser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/expression-classifier.h
diff --git a/src/expression-classifier.h b/src/expression-classifier.h
index fc89015d1fcee8a8f88cbb20169476cb523b14b1..716d4c7a3f29c24d2da337721c9089c4c3273616 100644
--- a/src/expression-classifier.h
+++ b/src/expression-classifier.h
@@ -225,18 +225,6 @@ class ExpressionClassifier {
}
}
- void AccumulateReclassifyingAsPattern(const ExpressionClassifier& inner) {
- Accumulate(inner, AllProductions & ~PatternProductions);
- if (!inner.is_valid_expression()) {
- if (is_valid_binding_pattern()) {
- binding_pattern_error_ = inner.expression_error();
- }
- if (is_valid_assignment_pattern()) {
- assignment_pattern_error_ = inner.expression_error();
- }
- }
- }
-
private:
unsigned invalid_productions_;
Error expression_error_;
« no previous file with comments | « no previous file | src/preparser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698