public void Insert(Token.Comment commentToken) { Comment comment = new Comment(commentToken.Data.ToString(), _baseUri); InsertNode(comment); }
public void CreateCommentPending() { _commentPending = new Token.Comment(); }
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); }