"In the
Roslyn.Compilers.CSharp namespace there is a StatementVistor class. This class
works much that same as the ICustomAstVisitor we find in the
System.Management.Automation namespace for PowerShell. It uses the same Visitor
pattern which makes it very easy to use them together. "
Continue reading on csharpening.net >>