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

Method Parser

src/media-query.test.ts:257–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255 }
256
257 static *Parser() {
258 yield optionalWhitespace;
259 yield '(';
260 yield optionalWhitespace;
261 const any: boolean = yield has('any-');
262 yield 'hover:';
263 yield optionalWhitespace;
264 const hover: 'none' | 'hover' = yield ['none', 'hover'];
265 yield optionalWhitespace;
266 yield ')';
267 return new ParsedHover(hover, any ? 'any' : undefined);
268 }
269}
270
271// See https://www.w3.org/TR/mediaqueries-5/#mq-syntax

Callers 2

matchMediaFunction · 0.45

Calls 1

hasFunction · 0.90

Tested by

no test coverage detected