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

Method parseTypeSelector

parser.go:283–290  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

281
282// parseTypeSelector parses a type selector (one that matches by tag name).
283func (p *parser) parseTypeSelector() (result Selector, err error) {
284 tag, err := p.parseIdentifier()
285 if err != nil {
286 return nil, err
287 }
288
289 return typeSelector(tag), nil
290}
291
292// parseIDSelector parses a selector that matches by id attribute.
293func (p *parser) parseIDSelector() (Selector, error) {

Callers 1

Calls 2

parseIdentifierMethod · 0.95
typeSelectorFunction · 0.85

Tested by

no test coverage detected