/// <summary> /// Dispatches to the specific visit method for this item type. /// </summary> /// <param name="visitor">The visitor object.</param> /// <returns>The object returned from the specific IParseItemVisitor method.</returns> /// <exception cref="System.ArgumentNullException">If visitor is null.</exception> public IParseItem Accept(IParseItemVisitor visitor) { if (visitor == null) throw new ArgumentNullException("visitor"); return visitor.Visit(this); }
public IParseItem Accept(IParseItemVisitor visitor) { if (visitor == null) { throw new ArgumentNullException(nameof(visitor)); } return(visitor.Visit(this)); }