コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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;
        }