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

Side by Side Diff: src/ast-expression-visitor.h

Issue 1412223018: [presubmit] Enabling readability/inheritance linter checking. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « src/ast.cc ('k') | src/ast-literal-reindexer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_AST_EXPRESSION_VISITOR_H_ 5 #ifndef V8_AST_EXPRESSION_VISITOR_H_
6 #define V8_AST_EXPRESSION_VISITOR_H_ 6 #define V8_AST_EXPRESSION_VISITOR_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/effects.h" 10 #include "src/effects.h"
(...skipping 17 matching lines...) Expand all
28 protected: 28 protected:
29 virtual void VisitExpression(Expression* expression) = 0; 29 virtual void VisitExpression(Expression* expression) = 0;
30 int depth() { return depth_; } 30 int depth() { return depth_; }
31 31
32 private: 32 private:
33 void VisitDeclarations(ZoneList<Declaration*>* d) override; 33 void VisitDeclarations(ZoneList<Declaration*>* d) override;
34 void VisitStatements(ZoneList<Statement*>* s) override; 34 void VisitStatements(ZoneList<Statement*>* s) override;
35 35
36 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); 36 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
37 37
38 #define DECLARE_VISIT(type) virtual void Visit##type(type* node) override; 38 #define DECLARE_VISIT(type) void Visit##type(type* node) override;
39 AST_NODE_LIST(DECLARE_VISIT) 39 AST_NODE_LIST(DECLARE_VISIT)
40 #undef DECLARE_VISIT 40 #undef DECLARE_VISIT
41 41
42 Expression* root_; 42 Expression* root_;
43 int depth_; 43 int depth_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(AstExpressionVisitor); 45 DISALLOW_COPY_AND_ASSIGN(AstExpressionVisitor);
46 }; 46 };
47 } // namespace internal 47 } // namespace internal
48 } // namespace v8 48 } // namespace v8
49 49
50 #endif // V8_AST_EXPRESSION_VISITOR_H_ 50 #endif // V8_AST_EXPRESSION_VISITOR_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/ast-literal-reindexer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698