MCPcopy Index your code
hub / github.com/darkreader/darkreader / parseSelectors

Function parseSelectors

src/utils/css-text/parse-css.ts:92–95  ·  view source on GitHub ↗
(selectorText: string)

Source from the content-addressed store, hash-verified

90}
91
92function parseSelectors(selectorText: string) {
93 const excludeRanges = getTokenExclusionRanges(selectorText);
94 return splitExcluding(selectorText, ',', excludeRanges);
95}
96
97function parseDeclarations(cssDeclarationsText: string) {
98 const declarations: ParsedDeclaration[] = [];

Callers 1

parseCSSFunction · 0.85

Calls 2

splitExcludingFunction · 0.90
getTokenExclusionRangesFunction · 0.85

Tested by

no test coverage detected