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

Unified Diff: src/parsing/expression-classifier.h

Issue 2279773002: [parser] Clean up type definitions (Closed)
Patch Set: Created 4 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/parsing/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/expression-classifier.h
diff --git a/src/parsing/expression-classifier.h b/src/parsing/expression-classifier.h
index b2dff74c247d59d2f20379954ab69bbaf5952af8..c7c0b8efc2429dea157e0e08733804267677bd48 100644
--- a/src/parsing/expression-classifier.h
+++ b/src/parsing/expression-classifier.h
@@ -25,7 +25,7 @@ namespace internal {
T(TailCallExpressionProduction, 9) \
T(AsyncArrowFormalParametersProduction, 10)
-template <typename Traits>
+template <typename Types>
class ExpressionClassifier {
public:
enum ErrorKind : unsigned {
@@ -77,7 +77,7 @@ class ExpressionClassifier {
NonSimpleParameter = 1 << 0
};
- explicit ExpressionClassifier(const typename Traits::Type::Base* base,
+ explicit ExpressionClassifier(const typename Types::Base* base,
DuplicateFinder* duplicate_finder = nullptr)
: zone_(base->impl()->zone()),
non_patterns_to_rewrite_(base->impl()->GetNonPatternList()),
@@ -425,7 +425,7 @@ class ExpressionClassifier {
}
Zone* zone_;
- ZoneList<typename Traits::Type::Expression>* non_patterns_to_rewrite_;
+ ZoneList<typename Types::Expression>* non_patterns_to_rewrite_;
ZoneList<Error>* reported_errors_;
DuplicateFinder* duplicate_finder_;
// The uint16_t for non_pattern_begin_ will not be enough in the case,
« no previous file with comments | « no previous file | src/parsing/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698