Ejemplo n.º 1
0
        /// <summary>
        /// Implements the visitor pattern for parse nodes.
        /// Dispatches to the specific visit method for this node type.
        /// For example, MethodNode calls the VisitMethod.
        /// </summary>
        /// <param name="visitor"></param>
        public override TResult Accept <TResult>(IParseTreeVisitor <TResult> visitor)
        {
#if DEBUG
            if (visitor == null)
            {
                throw new ArgumentNullException();
            }
#endif
            return(visitor.VisitBasicExpression(this));
        }