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

Method parseTypeSelector

parser.go:308–314  ·  view source on GitHub ↗

parseTypeSelector parses a type selector (one that matches by tag name).

()

Source from the content-addressed store, hash-verified

306
307// parseTypeSelector parses a type selector (one that matches by tag name).
308func (p *parser) parseTypeSelector() (result tagSelector, err error) {
309 tag, err := p.parseIdentifier()
310 if err != nil {
311 return
312 }
313 return tagSelector{tag: toLowerASCII(tag)}, nil
314}
315
316// parseIDSelector parses a selector that matches by id attribute.
317func (p *parser) parseIDSelector() (idSelector, error) {

Callers 1

Calls 2

parseIdentifierMethod · 0.95
toLowerASCIIFunction · 0.85

Tested by

no test coverage detected