Index: src/parsing/parser.h |
diff --git a/src/parsing/parser.h b/src/parsing/parser.h |
index 4ab075e052c48070a5814ab1b5c4dfbf5d57817a..a1c25c47296165b84c1b325af3d01ba9023a0ed6 100644 |
--- a/src/parsing/parser.h |
+++ b/src/parsing/parser.h |
@@ -853,7 +853,7 @@ class Parser : public ParserBase<ParserTraits> { |
Scanner::Location bindings_loc; |
}; |
- class PatternRewriter final : private AstVisitor<PatternRewriter> { |
+ class PatternRewriter final : public AstVisitor<PatternRewriter> { |
public: |
static void DeclareAndInitializeVariables( |
Block* block, const DeclarationDescriptor* declaration_descriptor, |