()
| 145 | } |
| 146 | |
| 147 | func (c compoundSelector) String() string { |
| 148 | if len(c.selectors) == 0 && c.pseudoElement == "" { |
| 149 | return "*" |
| 150 | } |
| 151 | chunks := make([]string, len(c.selectors)) |
| 152 | for i, sel := range c.selectors { |
| 153 | chunks[i] = sel.String() |
| 154 | } |
| 155 | s := strings.Join(chunks, "") |
| 156 | if c.pseudoElement != "" { |
| 157 | s += "::" + c.pseudoElement |
| 158 | } |
| 159 | return s |
| 160 | } |
| 161 | |
| 162 | func (c combinedSelector) String() string { |
| 163 | start := c.first.String() |