public virtual void Visit(IPgnSymbol node)
 {
     if (node != null)
     {
         node.Accept(this);
     }
 }
Example #2
0
 /// <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);