MCPcopy Index your code
hub / github.com/darkreader/darkreader / isVarType

Method isVarType

src/inject/dynamic-theme/variables.ts:65–70  ·  view source on GitHub ↗
(varName: string, typeNum: number)

Source from the content-addressed store, hash-verified

63 }
64
65 private isVarType(varName: string, typeNum: number) {
66 return (
67 this.varTypes.has(varName) &&
68 (this.varTypes.get(varName)! & typeNum) > 0
69 );
70 }
71
72 addRulesForMatching(rules: CSSRuleList | CSSRule[]): void {
73 this.rulesQueue.add(rules);

Callers 6

addModifiedValueMethod · 0.95
getDeclarationsMethod · 0.95
modifyMethod · 0.95
inspectVarDependantMethod · 0.95
putRootVarsMethod · 0.95

Calls 2

hasMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected