Chromium Code Reviews
Description[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}
Patch Set 1 #
Total comments: 16
Patch Set 2 : Fixes according to reviewers' comments #Patch Set 3 : Rebase #
Messages
Total messages: 24 (11 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||