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

Struct parser

parser.go:13–21  ·  view source on GitHub ↗

a parser for CSS selectors

Source from the content-addressed store, hash-verified

11
12// a parser for CSS selectors
13type parser struct {
14 s string // the source text
15 i int // the current position
16 depth int // current nesting depth
17
18 // if `false`, parsing a pseudo-element
19 // returns an error.
20 acceptPseudoElements bool
21}
22
23// parseEscape parses a backslash escape.
24func (p *parser) parseEscape() (result string, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected