Exemplo n.º 1
0
        public void Insert(Token.Comment commentToken)
        {
            Comment comment = new Comment(commentToken.Data.ToString(), _baseUri);

            InsertNode(comment);
        }
Exemplo n.º 2
0
 public void CreateCommentPending()
 {
     _commentPending = new Token.Comment();
 }
Exemplo n.º 3
0
 public void CreateCommentPending()
 {
     _commentPending = new Token.Comment();
 }
Exemplo n.º 4
0
 public override void Read(Tokeniser t, CharacterReader r)
 {
     // todo: handle bogus comment starting from eof. when does that trigger?
     // rewind to capture character that lead us here
     r.Unconsume();
     Token.Comment comment = new Token.Comment();
     comment.Data.Append(r.ConsumeTo('>'));
     // todo: replace nullChar with replaceChar
     t.Emit(comment);
     t.AdvanceTransition(Data);
 }