示例#1
0
            public StringBuilder Visit(SassContainerNode node, SassTreeDumperParams p)
            {
                p.Builder
                .Append(p.Prefix)
                .AppendFormat("{0}-- Container", junction(p.IsLast))
                .AppendLine();

                forEachSpecialLast(node.Children, (n, isLast) =>
                {
                    n.Accept(this, new SassTreeDumperParams
                    {
                        IsLast  = isLast,
                        Prefix  = indent(p.Prefix, p.IsLast),
                        Builder = p.Builder
                    });
                });

                return(p.Builder);
            }
示例#2
0
 public SassNode(SelectorNode selector, SassContainerNode container)
 {
     this.Selector  = selector;
     this.Container = container;
 }