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

Method matches

src/media-query.test.ts:244–255  ·  view source on GitHub ↗
(context: MatchMediaContext)

Source from the content-addressed store, hash-verified

242 }
243
244 matches(context: MatchMediaContext) {
245 const canHover =
246 this.any === 'any'
247 ? this.canAnyHover(context)
248 : this.canPrimaryHover(context);
249
250 if (canHover) {
251 return this.hover === 'hover';
252 } else {
253 return this.hover === 'none';
254 }
255 }
256
257 static *Parser() {
258 yield optionalWhitespace;

Callers 5

matchesMethod · 0.45
matchesMethod · 0.45
matchesMethod · 0.45
matchesMethod · 0.45
matchMediaFunction · 0.45

Calls 2

canAnyHoverMethod · 0.95
canPrimaryHoverMethod · 0.95

Tested by

no test coverage detected