/// <summary>Add a comment to the comment set.</summary> /// <remarks>Add a comment to the comment set.</remarks> /// <param name="comment">the comment node.</param> /// <exception cref="System.ArgumentException"> /// if comment is /// <code>null</code> /// </exception> public virtual void AddComment(Comment comment) { AssertNotNull(comment); if (comments == null) { comments = new TreeSet<Comment>(new AstNode.PositionComparator()); } comments.Add(comment); comment.SetParent(this); }