MCPcopy Create free account
hub / github.com/callstack/linaria / extractRules

Method extractRules

packages/core/src/processors/css.ts:43–60  ·  view source on GitHub ↗
(
    valueCache: ValueCache,
    cssText: string,
    loc?: SourceLocation | null
  )

Source from the content-addressed store, hash-verified

41 }
42
43 public override extractRules(
44 valueCache: ValueCache,
45 cssText: string,
46 loc?: SourceLocation | null
47 ): Rules {
48 const rules: Rules = {};
49
50 const selector = `.${this.className}`;
51
52 rules[selector] = {
53 cssText,
54 className: this.className,
55 displayName: this.displayName,
56 start: loc?.start ?? null,
57 };
58
59 return rules;
60 }
61
62 public getStaticValue(): StaticClassNameValue {
63 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected