|
[parser] Refactor AstTraversalVisitor
This patch parametrizes AstTraversalVisitor by the actual subclass,
in a similar way as AstVisitor is parametrized. This allows a
subclass to, e.g., override the Visit method and still use the
traversal mechanism. It also allows the subclass to override the
specific visiting methods, without them being virtual.
This patch also removes AstExpressionVisitor, subsuming its
functionality in AstTraversalVisitor.
R=adamk@chromium.org, verwaest@chromium.org
BUG=
LOG=N
Committed: https://crrev.com/ad6ea932272a1f8f74535c31882aaff3fb8ee6d4
Cr-Commit-Position: refs/heads/master@{#37998}
Total comments: 16
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+546 lines, -579 lines) |
Patch |
|
M |
BUILD.gn
|
View
|
1
2
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
src/ast/ast.h
|
View
|
1
2
|
3 chunks |
+6 lines, -38 lines |
0 comments
|
Download
|
|
M |
src/ast/ast.cc
|
View
|
|
1 chunk |
+0 lines, -299 lines |
0 comments
|
Download
|
|
D |
src/ast/ast-expression-visitor.h
|
View
|
|
1 chunk |
+0 lines, -41 lines |
0 comments
|
Download
|
|
D |
src/ast/ast-expression-visitor.cc
|
View
|
|
1 chunk |
+0 lines, -167 lines |
0 comments
|
Download
|
|
A |
src/ast/ast-traversal-visitor.h
|
View
|
1
|
1 chunk |
+504 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/debug/liveedit.h
|
View
|
1
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/debug/liveedit.cc
|
View
|
|
2 chunks |
+4 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/parsing/parameter-initializer-rewriter.cc
|
View
|
1
2
|
2 chunks |
+12 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/parsing/parser.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/parsing/parser.cc
|
View
|
1
2
|
2 chunks |
+11 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/v8.gyp
|
View
|
1
2
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
Total messages: 24 (11 generated)
|