MCPcopy Index your code
hub / github.com/callstack/linaria / rawValue

Method rawValue

packages/postcss-linaria/src/stringify.ts:171–178  ·  view source on GitHub ↗

@inheritdoc

(node: AnyNode, prop: string)

Source from the content-addressed store, hash-verified

169
170 /** @inheritdoc */
171 public override rawValue(node: AnyNode, prop: string): string {
172 const linariaProp = `linaria${prop[0]?.toUpperCase()}${prop.slice(1)}`;
173 if (Object.prototype.hasOwnProperty.call(node.raws, linariaProp)) {
174 return `${node.raws[linariaProp]}`;
175 }
176
177 return super.rawValue(node, prop);
178 }
179
180 /** @inheritdoc */
181 public override root(node: Root): void {

Callers 2

declMethod · 0.95
ruleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected