public virtual TResult Visit(GreenNode node) { if (node == null) { return(default(TResult)); } return(node.Accept(this)); }
public virtual GreenNode Visit(GreenNode node) { if (node != null) { return(node.Accept(this)); } return(null); }