2
// <copyright see="prj:///doc/copyright.txt"/>
3
// <license see="prj:///doc/license.txt"/>
4
// <owner name="none" email=""/>
5
// <version>$Revision: 4482 $</version>
10
namespace ICSharpCode.OldNRefactory
12
public class Comment : AbstractSpecial
14
CommentType commentType;
17
public CommentType CommentType {
26
public string CommentText {
36
/// Is true, when the comment is at line start or only whitespaces
37
/// between line and comment start.
39
public bool CommentStartsLine {
44
public Comment(CommentType commentType, string comment, bool commentStartsLine, Location startPosition, Location endPosition)
45
: base(startPosition, endPosition)
47
this.commentType = commentType;
48
this.comment = comment;
49
this.CommentStartsLine = commentStartsLine;
52
public override string ToString()
54
return String.Format("[{0}: Type = {1}, Text = {2}, Start = {3}, End = {4}]",
55
GetType().Name, CommentType, CommentText, StartPosition, EndPosition);
58
public override object AcceptVisitor(ISpecialVisitor visitor, object data)
60
return visitor.Visit(this, data);