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

Function RulesParser

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

Source from the content-addressed store, hash-verified

113}
114
115function* RulesParser(): ParseGenerator<Array<CSSRule>> {
116 const rules: Array<CSSRule> = [];
117 const hasClosingParent = has(lookAhead(/}/));
118
119 yield whitespaceMay;
120 while (yield hasMore) {
121 if (yield hasClosingParent) break;
122
123 rules.push(yield [RuleParser, CommentParser]);
124 yield whitespaceMay;
125
126 // if (yield closingParent) break;
127 }
128 return rules;
129}
130
131function* StylesheetParser() {
132 const elements: Array<any> = [];

Callers

nothing calls this directly

Calls 2

hasFunction · 0.90
lookAheadFunction · 0.90

Tested by

no test coverage detected