MCPcopy Create free account
hub / github.com/andybalholm/cascadia / String

Method String

serialize.go:147–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147func (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
162func (c combinedSelector) String() string {
163 start := c.first.String()

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected