public virtual void Visit(IPgnSymbol node) { if (node != null) { node.Accept(this); } }
/// <summary> /// Converts this <see cref="IPgnSymbol"/> to a <see cref="PgnSyntax"/> node. /// </summary> /// <param name="pgnSymbol"> /// The <see cref="IPgnSymbol"/> to convert. /// </param> /// <returns> /// The converted <see cref="PgnSyntax"/> node. /// </returns> public static PgnSyntax ToSyntax(this IPgnSymbol pgnSymbol) => pgnSymbol.Accept(ToPgnSyntaxConverter.Instance);