MCPcopy Index your code
hub / github.com/JavaScriptRegenerated/yieldparser / StylesheetParser

Function StylesheetParser

src/tailwindcss.test.ts:131–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129}
130
131function* StylesheetParser() {
132 const elements: Array<any> = [];
133
134 yield whitespaceMay;
135 while (yield hasMore) {
136 elements.push(yield [RuleParser, CommentParser, MediaQueryParser]);
137 yield whitespaceMay;
138 }
139 return elements;
140}
141
142function parseCSS(cssSource: string) {
143 return parse(cssSource, StylesheetParser());

Callers 1

parseCSSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected