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

Method matches

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

Source from the content-addressed store, hash-verified

286 ) {}
287
288 matches(context: MatchMediaContext) {
289 const base = this.first.matches(context);
290 if (this.conditions instanceof ParsedMediaAnds) {
291 return base && this.conditions.matches(context);
292 } else if (this.conditions instanceof ParsedMediaOrs) {
293 return base || this.conditions.matches(context);
294 } else {
295 return base;
296 }
297 }
298
299 static *Parser() {
300 yield optionalWhitespace;

Callers

nothing calls this directly

Calls 1

matchesMethod · 0.45

Tested by

no test coverage detected