/// <summary> /// Writes the full text of this token to the specified TextWriter /// </summary> /// <param name="writer"></param> public void WriteTo(System.IO.TextWriter writer) { if (_token != null) { _token.WriteTo(writer); } }
/// <summary> /// Writes the full text of this trivia to the specified TextWriter. /// </summary> public void WriteTo(System.IO.TextWriter writer) { if (triviaNode != null) { triviaNode.WriteTo(writer); } }
/// <summary> /// Writes the full text of this node or token to the specified TextWriter. /// </summary> public void WriteTo(System.IO.TextWriter writer) { if (_token != null) { _token.WriteTo(writer); } else { _nodeOrParent?.WriteTo(writer); } }