Skip to content

Instantly share code, notes, and snippets.

@mrcnkoba
Created October 30, 2013 19:35
Show Gist options
  • Save mrcnkoba/7238807 to your computer and use it in GitHub Desktop.
Save mrcnkoba/7238807 to your computer and use it in GitHub Desktop.
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimplifyVisitor
{
using System.Reflection;
public abstract class VisitorBase
{
public void Dispatch(Node node)
{
dynamic visitor = this;
visitor.Visit(node);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment