Beispiel #1
0
		/// <summary>Constructs a new Comment</summary>
		/// <param name="pos">the start position</param>
		/// <param name="len">the length including delimiter(s)</param>
		/// <param name="type">the comment type</param>
		/// <param name="value">the value of the comment, as a string</param>
		public Comment(int pos, int len, Token.CommentType type, string value) : base(pos, len)
		{
			{
				type = Token.COMMENT;
			}
			commentType = type;
			this.value = value;
		}
Beispiel #2
0
		/// <summary>Sets the comment style</summary>
		/// <param name="type">
		/// the comment style, a
		/// <see cref="Rhino.Token.CommentType">Rhino.Token.CommentType</see>
		/// </param>
		public virtual void SetCommentType(Token.CommentType type)
		{
			this.commentType = type;
		}