public void Append(SelectList last) { SelectList ll, sl; ll = sl = this; while ((ll = sl.FindDescendant <SelectList>()) != null) { sl = ll; } sl.Stack.AddLast(Comma.Create()); sl.Stack.AddLast(CommentOrWhitespace.Create(Whitespace.Create())); sl.Stack.AddLast(last); }
public static CommentOrWhitespace Create(Token t) { var ncw = new CommentOrWhitespace(); if (t is Whitespace || t is SingleLineComment || t is MultiLineComment) { ncw.Stack.AddLast(t); } else { throw new NotImplementedException(); } return(ncw); }
public static CommentOrWhitespace Create(Token t) { var ncw = new CommentOrWhitespace(); if (t is Whitespace || t is SingleLineComment || t is MultiLineComment) { ncw.Stack.AddLast(t); } else { throw new NotImplementedException(); } return ncw; }