This class implements the JavaScript scanner.
This class implements the JavaScript scanner. It is based on the C source files jsscan.c and jsscan.h in the jsref package.
Exemplo n.º 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;
		}
Exemplo n.º 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;
		}