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

Function formatAtRule

src/utils/css-text/format-css.ts:21–25  ·  view source on GitHub ↗
({type, query, rules}: ParsedAtRule, indent: string)

Source from the content-addressed store, hash-verified

19 }
20
21 function formatAtRule({type, query, rules}: ParsedAtRule, indent: string) {
22 lines.push(`${indent}${type} ${query} {`);
23 rules.forEach((child) => formatRule(child, `${indent}${tab}`));
24 lines.push(`${indent}}`);
25 }
26
27 function formatStyleRule({selectors, declarations}: ParsedStyleRule, indent: string) {
28 const lastSelectorIndex = selectors.length - 1;

Callers 1

formatRuleFunction · 0.85

Calls 1

formatRuleFunction · 0.85

Tested by

no test coverage detected